RedM Natives

GET_GAME_TIMER

Gets the current game timer in milliseconds.

Hash0xA4EA0691
Runtime nameGetGameTimer
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

long GET_GAME_TIMER();

Returns long — The game time.

Description

Cfx.re native reference

Gets the current game timer in milliseconds.

Usage

Lua
local retval = GetGameTimer()

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

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

Sources

Cfx.re native reference

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