Gameplay::setWeatherTypeOvertimePersist

From RAGE Multiplayer Wiki
Revision as of 09:12, 29 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Sets the weather type over time. ===Required Params=== *'''weatherName:''' {{RageType|string}} //Weather names can be found at Weather *'''time:''' {{RageType|number}} //time in seconds ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.setWeatherTypeOvertimePersist(weatherName, time); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.gamepl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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