RedM Natives

GET_SYSTEM_TIME

Hash0xBE7F225417E35A7C
Runtime nameGetSystemTime
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207

Signature

int GET_SYSTEM_TIME();

Returns int

Usage

Lua
local retval = GetSystemTime()

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

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

Sources

alloc8or RDR3 NativeDB

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