# getLightRadius (Cliente)

> Lê o alcance de uma luz.

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Função Lua
- **Lado**: Cliente
- **Categoria**: Luzes
- **URL**: https://wiki.mymp.gg/pt/getLightRadius

## Sintaxe

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

## Parâmetros

| Nome | Tipo | Descrição |
| --- | --- | --- |
| `light` | `light` | A luz. |

## Retorno

O alcance em metros, ou `false` com um argumento errado.

## Exemplo

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

## Veja também

- [setLightRadius (Cliente)](https://wiki.mymp.gg/pt/setLightRadius.md): Muda o alcance de uma luz.
- [getLightFalloff (Cliente)](https://wiki.mymp.gg/pt/getLightFalloff.md): Lê o expoente de desvanecimento de uma luz.
