SetGameSpeed

From Multi Theft Auto: Wiki
Revision as of 11:44, 16 August 2007 by Arc (talk | contribs)
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 game speed (Range 0 - 10)

Example

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

See Also