GetGameSpeed: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="lua">addCommandHandler ( "gamespeed", "gamespeedvalue" )
<syntaxhighlight lang="lua">addCommandHandler ( "gamespeed", "gamespeedvalue" )
function getgamespeedvalue ()
function gamespeedvalue ()
local speed = getGameSpeed ()
local speed = getGameSpeed ()
outputChatbox ( "Gamespeed is currently set to " ..speed.. "" )
outputChatbox ( "Gamespeed is currently set to " ..speed.. "" )

Revision as of 13:45, 12 May 2007