NETWORK_GET_GLOBAL_CLOCK
Writes the global network clock time to the output pointers. Returns true on success.
Signature
BOOL NETWORK_GET_GLOBAL_CLOCK(int* hour, int* minute, int* second); // 0x11A7ADCD629E170F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | hour | int* (out pointer) |
| 2 | minute | int* (out pointer) |
| 3 | second | int* (out pointer) |
Facts
| Name | NETWORK_GET_GLOBAL_CLOCK |
|---|---|
| Hash | 0x11A7ADCD629E170F |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, hour, minute, second = Citizen.InvokeNative(0x11A7ADCD629E170F, -- NETWORK_GET_GLOBAL_CLOCK
Citizen.PointerValueInt(), -- int* hour
Citizen.PointerValueInt(), -- int* minute
Citizen.PointerValueInt(), -- int* second
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, hour, minute, second] = Citizen.invokeNative("0x11A7ADCD629E170F", // NETWORK_GET_GLOBAL_CLOCK
Citizen.pointerValueInt(), // int* hour
Citizen.pointerValueInt(), // int* minute
Citizen.pointerValueInt(), // int* second
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var hourArg = new OutputArgument();
var minuteArg = new OutputArgument();
var secondArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x11A7ADCD629E170F, // NETWORK_GET_GLOBAL_CLOCK
hourArg, // int* hour
minuteArg, // int* minute
secondArg // int* second
);
int hour = hourArg.GetResult<int>();
int minute = minuteArg.GetResult<int>();
int second = secondArg.GetResult<int>();Related NETWORK natives
- NETWORK_GET_GLOBAL_MULTIPLAYER_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.