advanceClockTimeTo
ADVANCE_CLOCK_TIME_TO0xC8CA9670B9D83B3BThe GTA V native ADVANCE_CLOCK_TIME_TO of the CLOCK namespace, as LS:MP client scripts call it: the global function advanceClockTimeTo, in JavaScript and in Lua.
advanceClockTimeTo(hour: number, minute: number, second: number): voidadvanceClockTimeTo(hour: integer, minute: integer, second: integer)Usage
JavaScript
advanceClockTimeTo(hour, minute, second);Lua
advanceClockTimeTo(hour, minute, second)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
hour | int | number | integer |
minute | int | number | integer |
second | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
ℹ
Checked by LS:MP
hour must be between 0 and 23. minute and second must be between 0 and 59. Otherwise the call is ignored: nothing reaches the game, and no error is raised.
Reference
- Namespace
- Clock CLOCK
- In the game
void ADVANCE_CLOCK_TIME_TO(int hour, int minute, int second)- Hash
0xC8CA9670B9D83B3B