# engineGetSunShafts (Client)

> Returns the fraction of the resolution sun shafts are computed at.

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

## Syntax

```lua
float|false engineGetSunShafts()
```

## Returns

0 (off) or from 0.125 to 1, or `false` if the renderer is not running.

## Example

```lua
if engineGetSunShafts() > 0.5 then
    engineSetSunShafts(0.5)
end
```

## See also

- [engineSetSunShafts (Client)](https://wiki.mymp.gg/en/engineSetSunShafts.md): Sets the fraction of the resolution sun shafts are computed at, or turns them off.
