SetTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 13: Line 13:
<syntaxhighlight lang="lua"> setTime ( 18, 0 )
<syntaxhighlight lang="lua"> setTime ( 18, 0 )
outputChatBox ( "Time changed to 18:00!" )</syntaxhighlight>
outputChatBox ( "Time changed to 18:00!" )</syntaxhighlight>
==See Also==
{{World functions}}

Revision as of 20:30, 20 May 2006

Description

This function sets the current time to the given time. It returns false if it fails.

Syntax

setTime ( hour, minute )

Required Arguments

  • hour: The hour of the new time (range 0-23)
  • minute: The minute of the new time (range 0-59)

Example

 setTime ( 18, 0 )
outputChatBox ( "Time changed to 18:00!" )

See Also