SET_ARTIFICIAL_LIGHTS_STATE
Does not affect weapons, particles, fire/explosions, flashlights or the sun.
Hash
0xB2797619A7C7747BRuntime name
SetArtificialLightsStateNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x1268615ACE24D504Signature
void SET_ARTIFICIAL_LIGHTS_STATE(BOOL state);Parameters
| Name | Type | Description |
|---|---|---|
state | BOOL | — |
Returns void
Description
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.
state: True turns off all artificial light sources in the map: buildings, street lights, car lights, etc. False turns them back on.
Usage
SetArtificialLightsState(state)
-- always works, by hash
Citizen.InvokeNative(0xB2797619A7C7747B, state)JavaScript and C#
SetArtificialLightsState(state);
// by hash
Citizen.invokeNative('0xB2797619A7C7747B', state);Function.Call((Hash)0xB2797619A7C7747B, state);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.