---
title: "GetWeather | open.mp"
description: "Obtém o clima atual do mundo."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetWeather
language: pt-BR
---

# GetWeather

aviso

Esta função foi adicionada no omp v1.1.0.2612 e não funcionará em versões anteriores!

## Descrição

Obtém o clima atual do mundo.

## Exemplos

```c
SetWeather(19);

printf("Clima atual do mundo: %d", GetWeather());
// A saída será 'Clima atual do mundo: 19'
```

## Funções Relacionadas

-   [SetWeather](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/SetWeather): Define o clima do mundo para todos os jogadores.
-   [GetPlayerWeather](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/GetPlayerWeather): Obtém o clima de um jogador.
-   [SetPlayerWeather](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/SetPlayerWeather): Define o clima de um jogador.

## Recursos Relacionados

-   [Weather IDs](https://omp.itsneufox.com/pt-BR/docs/scripting/resources/weatherid)
