GraphicsClient

setArtificialVehicleLightsState

SET_ARTIFICIAL_VEHICLE_LIGHTS_STATE0xE2B187C0939B3D32

The 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.

SignatureJavaScript
setArtificialVehicleLightsState(toggle: boolean): void
SignatureLua
setArtificialVehicleLightsState(toggle: boolean)

Usage

JavaScript
setArtificialVehicleLightsState(toggle);
Lua
setArtificialVehicleLightsState(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

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

Open in the interactive natives reference