ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setGameSpeed

Function

setGameSpeed

ServerMiscellaneousIdentical to MTA:SA

Changes the game speed for every player: 1 is normal, 0.5 slow motion, 2 twice as fast (at most 10). It affects movement, animations and physics.

Syntax

bool setGameSpeed(float value)

Arguments

valuefloat
Speed 0-10.

Returns

true on success.

Example

addCommandHandler("matrix", function()
    setGameSpeed(0.4)
    setTimer(setGameSpeed, 5000, 1, 1)
end)

See also