Skip to main content

toggleTimeMode

exports["RiP-Environment"]:toggleTimeMode(toggleType, toggleMode) 

This server function toggles a weather mode

Arguments

NameTypeOptionalExplenation
toggleTypeStringNoTime toggle type (reallife, freeze, dynamic)
toggleModeBooleanNoNew 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