# getCloudsDensity (Client)

> Returns how much of the sky the clouds cover: the value `setCloudsDensity` set or, without it, the clouds' current one.

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

## Syntax

```lua
float getCloudsDensity()
```

## Returns

The coverage, from 0 to 1.

## Example

```lua
if getCloudsDensity() > 0.5 then
    outputDebugString("Cloudy")
end
```

## See also

- [setCloudsDensity (Client)](https://wiki.mymp.gg/en/setCloudsDensity.md): Changes how much of the sky the clouds cover, over the time cycle, until resetCloudsDensity restores it.
