SetGameSpeed

From Multi Theft Auto: Wiki
Revision as of 13:43, 12 May 2007 by BrophY (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function sets the game speed to the given value

Syntax

setGameSpeed ( int value )

Required Arguments

  • value: The int value of the gamespeed (Range 0 - 10)

Example

addCommandHandler ( "setgamespeed", "gamespeedfunction")
function gamespeedfunction ( player, command, value )
setGameSpeed ( tonumber ( value ) )
end

See Also