addToClockTime
ADD_TO_CLOCK_TIME0xD716F30D8C8980E2The GTA V native ADD_TO_CLOCK_TIME of the CLOCK namespace, as LS:MP client scripts call it: the global function addToClockTime, in JavaScript and in Lua.
addToClockTime(hours: number, minutes: number, seconds: number): voidaddToClockTime(hours: integer, minutes: integer, seconds: integer)✕
Blocked for scripts: Managed world state
LS:MP manages shared weather and restricts direct clock changes. The checked clock setters document their accepted ranges.
Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.
Reference
- Namespace
- Clock CLOCK
- In the game
void ADD_TO_CLOCK_TIME(int hours, int minutes, int seconds)- Hash
0xD716F30D8C8980E2