Gameplay::setRandomWeatherType

From RAGE Multiplayer Wiki
Revision as of 09:24, 29 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Sets a random weather ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.setRandomWeatherType(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //Set a random weather every 1 hour. setInterval(() => { mp.game.gameplay.setRandomWeatherType(); }, 60 * 60 * 1000) </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



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)


See also