GET_CLOCK_HOURS
Gets the current ingame hour, expressed without zeros.
Hash
0xC82CF208C2B19199Runtime name
GetClockHoursNamespaceCLOCK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x25223CA6B4D20B7FSignature
int GET_CLOCK_HOURS();Returns int
Description
Gets the current ingame hour, expressed without zeros. (09:34 will be represented as 9)
Usage
local retval = GetClockHours()
-- always works, by hash
local retval = Citizen.InvokeNative(0xC82CF208C2B19199, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetClockHours();
// by hash
const retval = Citizen.invokeNative('0xC82CF208C2B19199', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xC82CF208C2B19199);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.