game.SetTimeScale
Description
Sets the time scale of the game logic.
To slow down or speed up the movement of a specific player, use Player:SetLaggedMovementValue instead.
See physenv.SetTimeScale if you wish to only scale the physics timescale.
This function is meant to remove the need of using the host_timescale convar, which is cheat protected.
The true timescale will be host_timescale multiplied by game.GetTimeScale.
Like host_timescale, this method does not affect sounds, if you wish to change that, look into GM:EntityEmitSound.
Garry's Mod
Rust
Steamworks
Wiki Help