Scripting/Server/Functions/SetTimeScale
Real milliseconds per in-game minute (1000 is the normal speed).
Syntax
SetTimeScale(ms)Arguments
- int ms
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "settimescale" )
{
SetTimeScale( 1000 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- ToggleRealMoney
- SetTime
- SetTimeLock
- SetWeatherLock
- GetTime
- SetWeather
- SetVirtualWorldTime
- SetVirtualWorldWeather
- SetGamespeed
- SetGravity
- ToggleImprovedCarCam
- SetPlayerBlipStyle
Section: World settings
Categories: Server functions | World settings