---
title: "GetWeather | open.mp"
description: "آب و هوای فعلی دنیا رو دریافت می‌کنه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GetWeather
language: fa
---

# GetWeather

هشدار

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## توضیحات

آب و هوای فعلی دنیا رو دریافت می‌کنه.

## مثال‌ها

```c
SetWeather(19);

printf("Current world weather: %d", GetWeather());
// The output will be 'Current world weather: 19'
```

## توابع مرتبط

-   [SetWeather](https://omp.itsneufox.com/fa/docs/scripting/functions/SetWeather): تنظیم آب و هوای دنیا برای همه بازیکنان.
-   [GetPlayerWeather](https://omp.itsneufox.com/fa/docs/scripting/functions/GetPlayerWeather): دریافت آب و هوای یه بازیکن.
-   [SetPlayerWeather](https://omp.itsneufox.com/fa/docs/scripting/functions/SetPlayerWeather): تنظیم آب و هوای یه بازیکن.

## منابع مرتبط

-   [شناسه‌های آب و هوا](https://omp.itsneufox.com/fa/docs/scripting/resources/weatherid)
