ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getWeather

Function

getWeather

Server and clientWorldIdentical to MTA:SA

Returns the current weather and the weather a smooth change from setWeatherBlended is heading towards (or nil).

Syntax

int, int getWeather()

Returns

Current weather and the target one (or nil).

Example

local current, target = getWeather()
outputDebugString("Pogoda: " .. current .. (target and (" -> " .. target) or ""))

See also