RedM Natives

GET_CLOCK_YEAR

Hash0xE136DCA28C4A48BA
Runtime nameGetClockYear
NamespaceCLOCK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x961777E64BDAF717

Signature

int GET_CLOCK_YEAR();

Returns int

Usage

Lua
local retval = GetClockYear()

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

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

Sources

alloc8or RDR3 NativeDB

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