GET_GAME_TIMER
Returns the number of milliseconds elapsed since the game started.
Use it to measure intervals by storing a start value and comparing later.
Signature
int GET_GAME_TIMER(); // 0x4F67E8ECA7D3F667 b1207Parameters
This native takes no parameters.
Facts
| Name | GET_GAME_TIMER |
|---|---|
| Hash | 0x4F67E8ECA7D3F667 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x4F67E8ECA7D3F667, -- GET_GAME_TIMER
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x4F67E8ECA7D3F667", // GET_GAME_TIMER
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x4F67E8ECA7D3F667); // GET_GAME_TIMERRelated MISC natives
- _GET_GAME_TIMER_NON_SCALED_CLIPPED
- _GAME_FRAMEWORK_MANAGER_GET_MODE
- GET_GROUND_Z_AND_NORMAL_FOR_3D_COORD
- GET_GROUND_Z_FOR_3D_COORD
- GET_ANGLE_BETWEEN_2D_VECTORS
- GET_BENCHMARK_ITERATIONS
- GET_BENCHMARK_PASS
- GET_BITS_IN_RANGE
- GET_CLOSEST_POINT_ON_LINE
- GET_COORDS_OF_PROJECTILE_TYPE_WITHIN_DISTANCE
- GET_CURR_WEATHER_STATE
- GET_DISTANCE_BETWEEN_COORDS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.