# engineSetSunShafts (Client)

> Sets the fraction of the resolution sun shafts are computed at, or turns them off.

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

## Syntax

```lua
bool engineSetSunShafts(float scale)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `scale` | `float` | 0 turns them off; otherwise from 0.125 to 1. The default on PC is 0.5. Anything else raises an error. |

## 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
engineSetSunShafts(0)
```

## See also

- [engineGetSunShafts (Client)](https://wiki.mymp.gg/en/engineGetSunShafts.md): Returns the fraction of the resolution sun shafts are computed at.
- [engineSetBloom (Client)](https://wiki.mymp.gg/en/engineSetBloom.md): Sets how many blur levels bloom uses. More levels spread the glow further.
- [engineSetVolumetricFog (Client)](https://wiki.mymp.gg/en/engineSetVolumetricFog.md): Turns volumetric fog on or off. It starts off.
