GetTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 12: Line 12:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function currentTime()
function currentTime()
local hour, minutes = getTime()
    local hour, minutes = getTime()
outputChatBox( "The current time is "..hour..":"..minutes.."", source )
    outputChatBox( "The current time is "..hour..":"..minutes.."", source )
end
end
addCommandHandler("gettime", currentTime)
addCommandHandler("gettime", currentTime)

Revision as of 18:23, 4 April 2012