Skip to main content

Gameplay::setWeatherTypePersist

The following weatherTypes are used in the scripts:
'CLEAR'
'EXTRASUNNY'
'CLOUDS'
'OVERCAST'
'RAIN'
'CLEARING'
'THUNDER'
'SMOG'
'FOGGY'
'XMAS'
'SNOWLIGHT'
'BLIZZARD'

Syntax​

mp.game.gameplay.setWeatherTypePersist(weatherType);

Required Arguments​

  • weatherType: String

Return value​

  • Undefined

Example​

// todo