# getLightRadius (Client)

> Reads a light's range.

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

## Syntax

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

## Parameters

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

## Returns

The range in metres, or `false` with a wrong argument.

## Example

```lua
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(getLightRadius(light)) -- 15
```

## See also

- [setLightRadius (Client)](https://wiki.mymp.gg/en/setLightRadius.md): Changes a light's range.
- [getLightFalloff (Client)](https://wiki.mymp.gg/en/getLightFalloff.md): Reads a light's fade exponent.
