NetworkClient3 outputs

networkGetGlobalMultiplayerClock

NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK0x6D03BFBD643B2A02

The 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.

SignatureJavaScript
networkGetGlobalMultiplayerClock(): [
  hours: number,
  minutes: number,
  seconds: number
]
SignatureLua
networkGetGlobalMultiplayerClock(): integer, integer, integer

Usage

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.

#ValueTypeJavaScriptLuaDescription
1hoursintnumberintegeroutput
2minutesintnumberintegeroutput
3secondsintnumberintegeroutput

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

Open in the interactive natives reference