Skip to main content

setClientTime

exports["RiP-Environment"]:setClientTime(time, force) 

This function sets the current client time. If dynamic timechange is enabled and force is not true, the time will change dynamicly

Arguments

NameTypeOptionalExplenation
timeObjectNoh = hours, m = minutes, s = seconds
forceBooleanYesdisable dynamic timechange

Example

exports["RiP-Environment"]:setClientTime({ h=4, m=20 }, true) 
print("time set to 04:20:currentSecond instantly")


exports["RiP-Environment"]:setClientTime({ h=9 })
print("time set to 09:currentMinute:currentSecond")