World::weather: Difference between revisions
m (→Setter) |
(formatted text) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 9: | Line 9: | ||
==Example== | ==Example== | ||
< | <syntaxhighlight lang="javascript"> | ||
mp. | var weather = mp.world.weather; // GETTER | ||
</ | |||
mp.world.weather = 'CLEAR'; // SETTER | |||
</syntaxhighlight > | |||
==References== | ==References== | ||
{{World_definition}} | |||
Latest revision as of 15:50, 29 January 2018
This property gets/sets game weather.
Getter
- String - Weather ID
Setter
- String - Weather ID
Example
var weather = mp.world.weather; // GETTER
mp.world.weather = 'CLEAR'; // SETTER