# CFX::GET_GAME_TIMER

- **Hash:** `0xA4EA0691`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetGameTimer`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_GAME_TIMER

## Signature

```c
long GET_GAME_TIMER();
```

## Returns

`long` — The game time.

## Description

*Source: Cfx.re native reference*

Gets the current game timer in milliseconds.

## Usage

### Lua

```lua
local retval = GetGameTimer()

-- always available, by hash
local retval = Citizen.InvokeNative(0xa4ea0691, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetGameTimer();

// by hash
const retval = Citizen.invokeNative('0xa4ea0691', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xa4ea0691);
```

*Sources: Cfx.re native reference.*
