# getSkyColor (Client)

> Returns the sky gradient `setSkyColor` set.

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

## Syntax

```lua
int, int, int, int, int, int|false getSkyColor()
```

## Returns

The top's `r, g, b` components and then the horizon's, from 0 to 255. `false` if no colour was set and the sky follows the time cycle.

## Example

```lua
local tr, tg, tb, br, bg, bb = getSkyColor()
if not tr then
    outputDebugString("The sky follows the time cycle.")
end
```

## See also

- [setSkyColor (Client)](https://wiki.mymp.gg/en/setSkyColor.md): Paints the sky with a gradient from the top to the horizon, over the time cycle, until resetSkyColor restores it.
- [resetSkyColor (Client)](https://wiki.mymp.gg/en/resetSkyColor.md): Undoes setSkyColor: the sky follows the time cycle again.
