Shared function

getTime

From Multi Theft Auto: Wiki
Revision as of 16:33, 10 August 2007 by Norby89 (talk | contribs)
Jump to navigation Jump to search

This function is used to get the current time in the game.

Syntax

getTime ()

Returns

Returns two ints that represent hours and minutes.

Example

local hour, mins = getTime ()
outputChatBox ( "The current time is ".. hour ..":".. mins )

See Also