# getFogDistance (Client)

> Returns how far the fog starts: the value `setFogDistance` set or, without it, the time cycle's.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: World and weather
- **URL**: https://wiki.mymp.gg/en/getFogDistance

## Syntax

```lua
float getFogDistance()
```

## Returns

The distance in metres.

## Example

```lua
outputDebugString("Fog starts at " .. getFogDistance() .. " m")
```

## See also

- [setFogDistance (Client)](https://wiki.mymp.gg/en/setFogDistance.md): Changes how far from the camera the fog starts, over the time cycle, until resetFogDistance restores it.
