Gameplay::setWeatherTypeOvertimePersist
Client-Side Function
JavaScript Syntax
Sets the weather type over time.
Required Params
- weatherName: string //Weather names can be found at Weather
- time: number //time in seconds
Return value
- void
Syntax
mp.game.gameplay.setWeatherTypeOvertimePersist(weatherName, time);
Example
mp.game.gameplay.setWeatherTypeOvertimePersist("CLEAR", 300);