NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK
Hash
0x6D03BFBD643B2A02Runtime name
NetworkGetGlobalMultiplayerClockNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x6D03BFBD643B2A02Signature
void NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK(int* hours, int* minutes, int* seconds);Parameters
| Name | Type | Description |
|---|---|---|
hours | int* | — |
minutes | int* | — |
seconds | int* | — |
Returns void
Usage
local hours, minutes, seconds = NetworkGetGlobalMultiplayerClock()
-- always works, by hash
local hours, minutes, seconds = Citizen.InvokeNative(0x6D03BFBD643B2A02, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())JavaScript and C#
const [hours, minutes, seconds] = NetworkGetGlobalMultiplayerClock();
// by hash
const [hours, minutes, seconds] = Citizen.invokeNative('0x6D03BFBD643B2A02', Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt());var hours = new OutputArgument();
var minutes = new OutputArgument();
var seconds = new OutputArgument();
Function.Call((Hash)0x6D03BFBD643B2A02, hours, minutes, seconds);
// hours.GetResult<int>()
// minutes.GetResult<int>()
// seconds.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.