RedM Natives

GET_REAL_WORLD_TIME

Returns GET_GAME_TIMER() / 1000 Only used in rcm_pearson1.ysc

Hash0x2E036F0480B8BF02
Runtime nameGetRealWorldTime
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207

Signature

int GET_REAL_WORLD_TIME();

Returns int

Description

Returns GET_GAME_TIMER() / 1000
Only used in rcm_pearson1.ysc

Usage

Lua
local retval = GetRealWorldTime()

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

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

Sources

alloc8or RDR3 NativeDB

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