Gameplay::setRandomWeatherType
Client-Side Function
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)