Skip to main content

Gameplay::setWeatherTypeOvertimePersist

Client-side function

JavaScript​

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);