# getWeather (Cliente)

> Devolve o clima atual deste cliente. Durante uma transição, é o clima de destino.

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Função Lua
- **Lado**: Cliente
- **Categoria**: Mundo e clima
- **URL**: https://wiki.mymp.gg/pt/getWeather

## Sintaxe

```lua
int, string getWeather()
```

## Retorno

O id do clima e o seu nome.

## Exemplo

```lua
local id, name = getWeather()
outputDebugString("Weather: " .. name .. " (" .. id .. ")")
```

## Veja também

- [setWeather (Cliente)](https://wiki.mymp.gg/pt/setWeather.md): Muda o clima deste cliente, de uma vez ou numa transição.
- [getWeatherNames (Cliente)](https://wiki.mymp.gg/pt/getWeatherNames.md): Lista os climas que os pacotes carregados declaram.
