# CFX::GET_CURRENT_GAME_NAME

- **Hash:** `0xACA18ECD`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetCurrentGameName`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_CURRENT_GAME_NAME

## Signature

```c
char* GET_CURRENT_GAME_NAME();
```

## Returns

`char*` — The game name as a string, one of the following values: gta4, gta5, rdr3

## Description

*Source: Cfx.re native reference*

This native returns the currently used game's name.

## Usage

### Lua

```lua
local retval = GetCurrentGameName()

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

### JavaScript

```js
const retval = GetCurrentGameName();

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

### C#

```csharp
string retval = Function.Call<string>((Hash)0xaca18ecd);
```

*Sources: Cfx.re native reference.*
