World::weather: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
(formatted text)
 
Line 9: Line 9:


==Example==
==Example==
<source lang="javascript">
<syntaxhighlight lang="javascript">
mp.world.weather = 'HALLOWEEN';
var weather = mp.world.weather; // GETTER
</source>
 
mp.world.weather = 'CLEAR'; // SETTER
</syntaxhighlight >


==References==
==References==
[[Category:Weather API]]
{{World_definition}}

Latest revision as of 15:50, 29 January 2018

This property gets/sets game weather.

Getter

Setter

Example

var weather = mp.world.weather; // GETTER

mp.world.weather = 'CLEAR'; // SETTER

References