Gameplay::setWeatherTypeOvertimePersist

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



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


See also