Skip to main content

Gameplay::setRandomWeatherType

Client-side function

JavaScript​

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)