# getLightCastShadow (Client)

> Tells whether a light casts shadows.

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

## Syntax

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

## Parameters

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

## Returns

`true` if the light casts shadows. `false` if it does not, or with a wrong argument.

## Example

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

## See also

- [setLightCastShadow (Client)](https://wiki.mymp.gg/en/setLightCastShadow.md): Turns a light's shadows on or off.
- [isLightEnabled (Client)](https://wiki.mymp.gg/en/isLightEnabled.md): Tells whether a light is on.
