setArtificialVehicleLightsState
SET_ARTIFICIAL_VEHICLE_LIGHTS_STATE0xE2B187C0939B3D32The GTA V native SET_ARTIFICIAL_VEHICLE_LIGHTS_STATE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setArtificialVehicleLightsState, in JavaScript and in Lua.
setArtificialVehicleLightsState(toggle: boolean): voidsetArtificialVehicleLightsState(toggle: boolean)Usage
JavaScript
setArtificialVehicleLightsState(toggle);Lua
setArtificialVehicleLightsState(toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
If "blackout" is enabled, this native allows you to ignore "blackout" for vehicles.
Reference
- Namespace
- Graphics GRAPHICS
- In the game
void SET_ARTIFICIAL_VEHICLE_LIGHTS_STATE(BOOL toggle)- Hash
0xE2B187C0939B3D32- Introduced
- Game build 2060 legacy numbering
- Formerly
_SET_ARTIFICIAL_LIGHTS_STATE_AFFECTS_VEHICLES