RedM Natives

GET_NETWORK_TIME

Hash0x7A5487FE9FAA6B48
Runtime nameGetNetworkTime
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x7A5487FE9FAA6B48

Signature

int GET_NETWORK_TIME();

Returns int

Usage

Lua
local retval = GetNetworkTime()

-- always works, by hash
local retval = Citizen.InvokeNative(0x7A5487FE9FAA6B48, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetNetworkTime();

// by hash
const retval = Citizen.invokeNative('0x7A5487FE9FAA6B48', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x7A5487FE9FAA6B48);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.