RedM Natives

GET_CLOCK_HOURS

Gets the current ingame hour, expressed without zeros.

Hash0xC82CF208C2B19199
Runtime nameGetClockHours
NamespaceCLOCK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x25223CA6B4D20B7F

Signature

int GET_CLOCK_HOURS();

Returns int

Description

Gets the current ingame hour, expressed without zeros. (09:34 will be represented as 9)

Usage

Lua
local retval = GetClockHours()

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

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

Sources

alloc8or RDR3 NativeDB

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