RedM Natives

GET_GAME_TIMER

Hash0x4F67E8ECA7D3F667
Runtime nameGetGameTimer
NamespaceMISC
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9CD27B0045628463

Signature

int GET_GAME_TIMER();

Returns int

Usage

Lua
local retval = GetGameTimer()

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

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

Sources

alloc8or RDR3 NativeDB

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