GET_CLOCK_SECONDS
Gets the current ingame clock second.
Hash
0xB6101ABE62B5F080Runtime name
GetClockSecondsNamespaceCLOCK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x494E97C2EF27C470Signature
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
local retval = GetClockSeconds()
-- always works, by hash
local retval = Citizen.InvokeNative(0xB6101ABE62B5F080, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetClockSeconds();
// by hash
const retval = Citizen.invokeNative('0xB6101ABE62B5F080', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xB6101ABE62B5F080);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.