setArtificialLightsState
SET_ARTIFICIAL_LIGHTS_STATE0x1268615ACE24D504The GTA V native SET_ARTIFICIAL_LIGHTS_STATE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setArtificialLightsState, in JavaScript and in Lua.
setArtificialLightsState(state: boolean): voidsetArtificialLightsState(state: boolean)Usage
JavaScript
setArtificialLightsState(state);Lua
setArtificialLightsState(state)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
state | BOOL | boolean | boolean | True turns off all artificial light sources in the map: buildings, street lights, car lights, etc. False turns them back on. |
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.
Does not affect weapons, particles, fire/explosions, flashlights or the sun.
When set to true, all emissive textures (including ped components that have light effects), street lights, building lights, vehicle lights, etc will all be turned off.
Used in Humane Labs Heist for EMP.
Reference
- Namespace
- Graphics GRAPHICS
- In the game
void SET_ARTIFICIAL_LIGHTS_STATE(BOOL state)- Hash
0x1268615ACE24D504- Formerly
_SET_BLACKOUT