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
Name | Type | Optional | Explenation |
---|---|---|---|
time | Object | No | h = hours, m = minutes, s = seconds |
force | Boolean | Yes | disable 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")