# getMoonColor (Client)

> Returns the colour of the moon in use: the one `setMoonColor` 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/getMoonColor

## Syntax

```lua
int, int, int getMoonColor()
```

## Returns

The `r, g, b` components, from 0 to 255.

## Example

```lua
local r, g, b = getMoonColor()
outputDebugString(("Moon: %d, %d, %d"):format(r, g, b))
```

## See also

- [setMoonColor (Client)](https://wiki.mymp.gg/en/setMoonColor.md): Changes the colour of the moon, over the time cycle, until resetMoonColor restores it.
