# setCloudsDensity (Client)

> Changes how much of the sky the clouds cover, over the time cycle, until `resetCloudsDensity` restores it.

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

## Syntax

```lua
bool setCloudsDensity(float density)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `density` | `float` | The coverage, from 0 (clear sky) to 1. |

## Returns

`true` once the value is set.

## Example

```lua
setCloudsDensity(0.8)
```

## See also

- [getCloudsDensity (Client)](https://wiki.mymp.gg/en/getCloudsDensity.md): Returns how much of the sky the clouds cover: the value setCloudsDensity set or, without it, the clouds' current one.
- [resetCloudsDensity (Client)](https://wiki.mymp.gg/en/resetCloudsDensity.md): Undoes setCloudsDensity: the cloud coverage follows the time cycle again.
