toggleWeatherMode
exports["RiP-Environment"]:toggleWeatherMode(toggleType, toggleMode)
This server function toggles a weather mode
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
toggleType | String | No | Weather toggle type (reallife , freeze , zones ) |
toggleMode | Boolean | No | New toggle state |
Returned Value
This function returns loadZoneData
if succeded. Otherwise it will return false
Example
local callback = exports["RiP-Environment"]:toggleWeatherMode('freeze', true)
if callback then
print("current weather freezed", json.encode(callback))
end