ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setRainLevel

Function

setRainLevel

ServerMiscellaneousIdentical to MTA:SA

Sets the rain level 0-10. The value is stored for compatibility with existing scripts (getRainLevel) but does not change the in-game rain; rain comes from the weather (setWeather).

Syntax

bool setRainLevel(float level)

Arguments

levelfloat
Level 0-10.

Returns

true on success.

Example

setWeather(16)
setRainLevel(5)

See also