# getLightCastShadow (Cliente)

> Diz se uma luz projeta sombras.

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

## Sintaxe

```lua
bool getLightCastShadow(light light)
```

## Parâmetros

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

## Retorno

`true` se a luz projeta sombras. `false` se não projeta ou com um argumento errado.

## Exemplo

```lua
local light = createSpotLight(0, 0, 10, 0, 0, -1)
outputDebugString(tostring(getLightCastShadow(light))) -- false
```

## Veja também

- [setLightCastShadow (Cliente)](https://wiki.mymp.gg/pt/setLightCastShadow.md): Liga ou desliga as sombras de uma luz.
- [isLightEnabled (Cliente)](https://wiki.mymp.gg/pt/isLightEnabled.md): Diz se uma luz está ligada.
