NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK
Writes the global multiplayer clock time to the output pointers.
Signature
void NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK(int* hours, int* minutes, int* seconds); // 0x6D03BFBD643B2A02 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | hours | int* (out pointer) |
| 2 | minutes | int* (out pointer) |
| 3 | seconds | int* (out pointer) |
Facts
| Name | NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK |
|---|---|
| Hash | 0x6D03BFBD643B2A02 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hours, minutes, seconds = Citizen.InvokeNative(0x6D03BFBD643B2A02, -- NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK
Citizen.PointerValueInt(), -- int* hours
Citizen.PointerValueInt(), -- int* minutes
Citizen.PointerValueInt() -- int* seconds
)
print(hours, minutes, seconds)const [hours, minutes, seconds] = Citizen.invokeNative("0x6D03BFBD643B2A02", // NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK
Citizen.pointerValueInt(), // int* hours
Citizen.pointerValueInt(), // int* minutes
Citizen.pointerValueInt() // int* seconds
);
console.log(hours, minutes, seconds)var hoursArg = new OutputArgument();
var minutesArg = new OutputArgument();
var secondsArg = new OutputArgument();
Function.Call((Hash)0x6D03BFBD643B2A02, // NETWORK_GET_GLOBAL_MULTIPLAYER_CLOCK
hoursArg, // int* hours
minutesArg, // int* minutes
secondsArg // int* seconds
);
int hours = hoursArg.GetResult<int>();
int minutes = minutesArg.GetResult<int>();
int seconds = secondsArg.GetResult<int>();Related NETWORK natives
- NETWORK_GET_GLOBAL_CLOCK
- NETWORK_GET_DESTROYER_OF_NETWORK_ID
- NETWORK_GET_ENTITY_FROM_NETWORK_ID
- NETWORK_GET_NETWORK_ID_FROM_ENTITY
- NETWORK_GET_NETWORK_ID_FROM_ROPE_ID
- NETWORK_GET_ROPE_ID_FROM_NETWORK_ID
- NETWORK_GET_THIS_SCRIPT_IS_NETWORK_SCRIPT
- NETWORK_GET_GAME_MODE
- NETWORK_GET_GAMERTAG_FROM_HANDLE
- NETWORK_GET_ASSISTED_DAMAGE_OF_ENTITY
- NETWORK_GET_AVERAGE_LATENCY
- NETWORK_GET_AVERAGE_PACKET_LOSS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.