# isLightEnabled (Client)

> Tells whether a light is on.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Lights
- **URL**: https://wiki.mymp.gg/en/isLightEnabled

## Syntax

```lua
bool isLightEnabled(light light)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `light` | `light` | The light. |

## Returns

`true` if the light is on. `false` if it is off, or with a wrong argument.

## Example

```lua
local light = createPointLight(0, 0, 5)
setLightEnabled(light, false)
outputDebugString(tostring(isLightEnabled(light))) -- false
```

## See also

- [setLightEnabled (Client)](https://wiki.mymp.gg/en/setLightEnabled.md): Turns a light on or off without destroying it.
- [getLightCastShadow (Client)](https://wiki.mymp.gg/en/getLightCastShadow.md): Tells whether a light casts shadows.
