GET_GAME_TIMER
Gets the current game timer in milliseconds.
Signature
long GET_GAME_TIMER();Returns long — The game time.
Description
Gets the current game timer in milliseconds.
Usage
local retval = GetGameTimer()
-- always works, by hash
local retval = Citizen.InvokeNative(0xa4ea0691, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetGameTimer();
// by hash
const retval = Citizen.invokeNative('0xa4ea0691', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xa4ea0691);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.