GetGameSpeed

From Multi Theft Auto: Wiki
Revision as of 19:30, 19 August 2007 by Arc (talk | contribs)
Jump to navigation Jump to search

Description

This function gets the current game speed value.

Syntax

getGameSpeed()

Example

This example adds a 'gamespeed' console command that prints the game speed to the chat box.

function gamespeedvalue ( )
    local speed = getGameSpeed ( )
    outputChatbox ( "Gamespeed is currently set to " .. speed .. "." )
end
addCommandHandler ( "gamespeed", gamespeedvalue )

See Also