Scripting/Server/Functions/SetTime
Sets/reads the shared game clock. SetTime applies to every virtual world; use SetVirtualWorldTime for one world only.
Syntax
SetTime(hour, minute)GetHour()GetMinute()Arguments
- int hour
- int minute
Example
function onScriptLoad()
{
SetTime( 22, 30 ); // 22:30, night
}Related pages
- ToggleRealMoney
- SetTimeLock
- SetTimeScale
- SetWeatherLock
- GetTime
- SetWeather
- SetVirtualWorldTime
- SetVirtualWorldWeather
- SetGamespeed
- SetGravity
- ToggleImprovedCarCam
- SetPlayerBlipStyle
Section: World settings
Categories: Server functions | World settings