# getLightColor (Cliente)

> Lee el color de una luz.

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

## Sintaxis

```lua
int|false getLightColor(light light)
```

## Parámetros

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

## Retorno

Tres números `r, g, b`, de 0 a 255, o `false` con un argumento incorrecto.

## Ejemplo

```lua
local light = createPointLight(0, 0, 5, 10, 255, 128, 0)
local r, g, b = getLightColor(light)
outputDebugString(r .. ", " .. g .. ", " .. b)
```

## Ver también

- [setLightColor (Cliente)](https://wiki.mymp.gg/es/setLightColor.md): Cambia el color de una luz.
- [getLightIntensity (Cliente)](https://wiki.mymp.gg/es/getLightIntensity.md): Lee el brillo de una luz.
