World::weather: Difference between revisions
(Created page with "This property gets/sets game weather. <br/> '''Note: this property is read-only.''' ==Example== <source lang="javascript"> mp.environment.weather = 'HALLOWEEN'; </source>") |
(formatted text) |
||
| (11 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
This property gets/sets game weather. | This property gets/sets game weather. | ||
< | |||
''' | ==Getter== | ||
* '''<span style="color:#008017">String</span> - [[Weather|Weather ID]]''' | |||
==Setter== | |||
* '''<span style="color:#008017">String</span> - [[Weather|Weather ID]]''' | |||
==Example== | ==Example== | ||
< | <syntaxhighlight lang="javascript"> | ||
mp. | var weather = mp.world.weather; // GETTER | ||
</ | |||
mp.world.weather = 'CLEAR'; // SETTER | |||
</syntaxhighlight > | |||
==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