# GRAPHICS::SET_ARTIFICIAL_LIGHTS_STATE

- **Hash:** `0xB2797619A7C7747B`
- **Namespace:** GRAPHICS
- **Runtime name (Lua/JS):** `SetArtificialLightsState`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/GRAPHICS/SET_ARTIFICIAL_LIGHTS_STATE

## Signature

```c
void SET_ARTIFICIAL_LIGHTS_STATE(BOOL state);
```

## Parameters

- `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

### Lua

```lua
SetArtificialLightsState(state)

-- always available, by hash
Citizen.InvokeNative(0xB2797619A7C7747B, state)
```

### JavaScript

```js
SetArtificialLightsState(state);

// by hash
Citizen.invokeNative('0xB2797619A7C7747B', state);
```

### C#

```csharp
Function.Call((Hash)0xB2797619A7C7747B, state);
```

*Sources: alloc8or RDR3 NativeDB.*
