RedM Natives

SET_ARTIFICIAL_LIGHTS_STATE

Does not affect weapons, particles, fire/explosions, flashlights or the sun.

Hash0xB2797619A7C7747B
Runtime nameSetArtificialLightsState
NamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1268615ACE24D504

Signature

void SET_ARTIFICIAL_LIGHTS_STATE(BOOL state);

Parameters

NameTypeDescription
stateBOOL—

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

Lua
SetArtificialLightsState(state)

-- always works, by hash
Citizen.InvokeNative(0xB2797619A7C7747B, state)
JavaScript and C#
JavaScript
SetArtificialLightsState(state);

// by hash
Citizen.invokeNative('0xB2797619A7C7747B', state);
C#
Function.Call((Hash)0xB2797619A7C7747B, state);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.