Gameplay::setRandomWeatherType

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax

Sets a random weather

Return value

  • void

Syntax

mp.game.gameplay.setRandomWeatherType();

Example

//Set a random weather every 1 hour.
setInterval(() => {
    mp.game.gameplay.setRandomWeatherType();
}, 60 * 60 * 1000)


See also