setServerTime
exports["RiP-Environment"]:setServerTime(time)
This server function sets the current server time and automaticly updates it for every client
Arguments
Name | Type | Optional | Explenation |
---|---|---|---|
time | Object | No | h = hours, m = minutes |
Example
exports["RiP-Environment"]:setServerTime({ h=4, m=20 })
print("time set to 04:20")
local callback = exports["RiP-Environment"]:setServerTime({ h=42 })
-- callback = false