# getSunColor (Client)

> Returns the colour of the sun in use: the one `setSunColor` 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/getSunColor

## Syntax

```lua
int, int, int getSunColor()
```

## Returns

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

## Example

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

## See also

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