Skip to main content

setServerTime

exports["RiP-Environment"]:setServerTime(time) 

This server function sets the current server time and automaticly updates it for every client

Arguments

NameTypeOptionalExplenation
timeObjectNoh = 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