SetTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
{{Server client function}}
This function sets the current time to the given time. It returns false if it fails.
This function sets the current time to the given time. It returns false if it fails.


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">setTime ( hour, minute )</syntaxhighlight>
<syntaxhighlight lang="lua">setTime ( int hour, int minute )</syntaxhighlight>


===Required Arguments===
===Required Arguments===

Revision as of 16:16, 13 August 2007

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

Syntax

setTime ( int hour, int 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