# engineSetLocalLightShadows (Client)

> Turns the shadows of local lights (point, spot and rect lights) on or off.

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

## Syntax

```lua
bool engineSetLocalLightShadows(bool enabled)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `enabled` | `bool` | `true` lets the lights that ask for a shadow cast one. |

## Returns

`true` if the setting was applied, `false` if the renderer is not running.

The setting applies to the whole client and stays after the resource stops.

## Example

```lua
engineSetLocalLightShadows(false)
```

## See also

- [engineGetLocalLightShadows (Client)](https://wiki.mymp.gg/en/engineGetLocalLightShadows.md): Tells whether local lights cast shadows.
- [engineSetShadows (Client)](https://wiki.mymp.gg/en/engineSetShadows.md): Sets up the sun's shadows: how many cascades, their resolution and whether their edges are soft.
- [setLightCastShadow (Client)](https://wiki.mymp.gg/en/setLightCastShadow.md): Turns a light's shadows on or off.
