RedM Natives

GET_CLOCK_SECONDS

Gets the current ingame clock second.

Hash0xB6101ABE62B5F080
Runtime nameGetClockSeconds
NamespaceCLOCK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x494E97C2EF27C470

Signature

int GET_CLOCK_SECONDS();

Returns int

Description

Gets the current ingame clock second. Note that ingame clock seconds change really fast since a day in RDR is only 48 minutes in real life.

Usage

Lua
local retval = GetClockSeconds()

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

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

Sources

alloc8or RDR3 NativeDB

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