SetTime

From Multi Theft Auto: Wiki
Revision as of 02:27, 1 April 2006 by ChrML (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

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

Syntax

bool 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 )
serverChat ( "Time changed to 18:00!" )