# setMoonSize (Client)

> Changes the size of the moon's disc in the sky, over the time cycle, until `resetMoonSize` restores it.

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

## Syntax

```lua
bool setMoonSize(float size)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `size` | `float` | The disc's apparent diameter, in degrees, from 0 to 60. |

## Returns

`true` once the value is set.

## Example

```lua
setMoonSize(12)
```

## See also

- [getMoonSize (Client)](https://wiki.mymp.gg/en/getMoonSize.md): Returns the size of the moon's disc: the one setMoonSize set or, without it, the time cycle's.
- [resetMoonSize (Client)](https://wiki.mymp.gg/en/resetMoonSize.md): Undoes setMoonSize: the moon's size follows the time cycle again.
