# getLightColor (Client)

> Reads a light's colour.

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

## Syntax

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

## Parameters

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

## Returns

Three numbers `r, g, b`, from 0 to 255, or `false` with a wrong argument.

## Example

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

## See also

- [setLightColor (Client)](https://wiki.mymp.gg/en/setLightColor.md): Changes a light's colour.
- [getLightIntensity (Client)](https://wiki.mymp.gg/en/getLightIntensity.md): Reads a light's brightness.
