toggleTimeMode
exports["RiP-Environment"]:toggleTimeMode(toggleType, toggleMode)
This server function toggles a weather mode
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
toggleType | String | No | Time toggle type (reallife , freeze , dynamic ) |
toggleMode | Boolean | No | New toggle state |
Returned Value
This function returns true
if succeded. Otherwise it will return false
Example
local callback = exports["RiP-Environment"]:toggleTimeMode('reallife', true)
if callback then
print("real-life time enabled")
end