networkGetGlobalMultiplayerClock
NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK0x6D03BFBD643B2A02The GTA V native NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetGlobalMultiplayerClock, in JavaScript and in Lua.
networkGetGlobalMultiplayerClock(): [
hours: number,
minutes: number,
seconds: number
]networkGetGlobalMultiplayerClock(): integer, integer, integerUsage
JavaScript
const [hours, minutes, seconds] = networkGetGlobalMultiplayerClock();Lua
local hours, minutes, seconds = networkGetGlobalMultiplayerClock()Parameters
None. The game writes the outputs: they are handed back, not passed in.
Returns
3 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | hours | int | number | integer | output |
| 2 | minutes | int | number | integer | output |
| 3 | seconds | int | number | integer | output |
Reference
- Namespace
- Network NETWORK
- In the game
void NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK(int* hours, int* minutes, int* seconds)- Hash
0x6D03BFBD643B2A02- Formerly
_NETWORK_GET_SERVER_TIME