GetGameSpeed

From Multi Theft Auto: Wiki

Revision as of 23:17, 24 April 2010 by JackZipper (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function gets the current game speed value.

Syntax

Returns

Returns a float.

Example

Click to collapse [-]
Server and Client

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

In other languages