SetArtificialLightsState
DocsSetArtificialLightsState(state)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.
Used in Humane Labs Heist for EMP.
Parameters
| Name | Type | Description |
|---|---|---|
state | BOOL | True turns off all artificial light sources in the map: buildings, street lights, car lights, etc. False turns them back on. |
Returns
voidThis native does not return a value.
Examples
Official
-- Disable all lights in the map.
SetArtificialLightsState(true)
-- Enable all lights in the map.
SetArtificialLightsState(false)