SetVehicleSpecialLightStatus: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This function sets on the vehicle special lights. For example taxi lights. True = ON, False = OFF. ==Syntax== {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}NAPI.Veh...")
 
No edit summary
Line 1: Line 1:
This function sets on the vehicle special lights. For example taxi lights. True = ON, False = OFF.
This function sets on the vehicle special lights. For example taxi lights. True = ON, False = OFF.


==Syntax==
{{CSharpContainer|
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}NAPI.Vehicle.SetVehicleSpecialLightStatus(Vehicle vehicle, bool state);}}
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}NAPI.Vehicle.SetVehicleSpecialLightStatus(Vehicle vehicle, bool state);}}
=== Required Arguments ===
*'''vehicle:''' parameter input should be in '''Vehicle''' type
*'''state:''' parameter input should be in '''bool''' type
==Example==
{{CSharpContainer|
{{Parameters}}
{{Parameters}}
*'''vehicle:''' parameter input should be in '''Vehicle''' type
*'''vehicle:''' parameter input should be in '''Vehicle''' type

Revision as of 21:03, 27 November 2019

This function sets on the vehicle special lights. For example taxi lights. True = ON, False = OFF.


C# Syntax

void NAPI.NAPI.Vehicle.SetVehicleSpecialLightStatus(Vehicle vehicle, bool state);

Parameters

  • vehicle: parameter input should be in Vehicle type
  • state: parameter input should be in bool type

Example

NAPI.Vehicle.SetVehicleSpecialLightStatus(vehicle, true);