# isLightEnabled (Cliente)

> Dice si una luz está encendida.

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Función Lua
- **Lado**: Cliente
- **Categoría**: Luces
- **URL**: https://wiki.mymp.gg/es/isLightEnabled

## Sintaxis

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

## Parámetros

| Nombre | Tipo | Descripción |
| --- | --- | --- |
| `light` | `light` | La luz. |

## Retorno

`true` si la luz está encendida. `false` si está apagada, o con un argumento incorrecto.

## Ejemplo

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

## Ver también

- [setLightEnabled (Cliente)](https://wiki.mymp.gg/es/setLightEnabled.md): Enciende o apaga una luz sin destruirla.
- [getLightCastShadow (Cliente)](https://wiki.mymp.gg/es/getLightCastShadow.md): Dice si una luz proyecta sombras.
