# getLightIntensity (Client)

> Reads a light's brightness.

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

## Syntax

```lua
float|false getLightIntensity(light light)
```

## Parameters

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

## Returns

The brightness multiplier, or `false` with a wrong argument.

## Example

```lua
local light = createPointLight(0, 0, 5)
outputDebugString(getLightIntensity(light)) -- 1
```

## See also

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