# engineSetVolumetricFog (Client)

> Turns volumetric fog on or off. It starts off.

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

## Syntax

```lua
bool engineSetVolumetricFog(bool enabled)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `enabled` | `bool` | `true` to turn it on. |

## 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
engineSetVolumetricFog(true)
```

## See also

- [engineGetVolumetricFog (Client)](https://wiki.mymp.gg/en/engineGetVolumetricFog.md): Tells whether volumetric fog is on.
- [engineSetSunShafts (Client)](https://wiki.mymp.gg/en/engineSetSunShafts.md): Sets the fraction of the resolution sun shafts are computed at, or turns them off.
- [engineSetClouds (Client)](https://wiki.mymp.gg/en/engineSetClouds.md): Chooses how clouds are drawn.
