SetTime: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 4: Line 4:


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


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

Revision as of 02:38, 18 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 )
 serverChat ( "Time changed to 18:00!" )