networkOverrideClockTime
NETWORK_OVERRIDE_CLOCK_TIME0xE679E3E06E363892The GTA V native NETWORK_OVERRIDE_CLOCK_TIME of the NETWORK namespace, as LS:MP client scripts call it: the global function networkOverrideClockTime, in JavaScript and in Lua.
networkOverrideClockTime(
hours: number,
minutes: number,
seconds: number
): voidnetworkOverrideClockTime(hours: integer, minutes: integer, seconds: integer)Usage
JavaScript
networkOverrideClockTime(hours, minutes, seconds);Lua
networkOverrideClockTime(hours, minutes, seconds)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
hours | int | number | integer |
minutes | int | number | integer |
seconds | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
On LS:MP
ℹ
Checked by LS:MP
hours must be between 0 and 23. minutes and seconds must be between 0 and 59. Otherwise the call is ignored: nothing reaches the game, and no error is raised.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Works in Singleplayer too.
Passing wrong data (e.g. hours above 23) will cause the game to crash.
Reference
- Namespace
- Network NETWORK
- In the game
void NETWORK_OVERRIDE_CLOCK_TIME(int hours, int minutes, int seconds)- Hash
0xE679E3E06E363892