# CFX::GET_GAME_BUILD_NUMBER

- **Hash:** `0x804B9F7B`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetGameBuildNumber`
- **Side:** shared (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_GAME_BUILD_NUMBER

## Signature

```c
int GET_GAME_BUILD_NUMBER();
```

## Returns

`int` — The build number, or **0** if no build number is known.

## Description

*Source: Cfx.re native reference*

Returns the internal build number of the current game being executed.

Possible values:

*   FiveM
    *   1604
    *   2060
    *   2189
    *   2372
    *   2545
    *   2612
    *   2699
    *   2802
    *   2944
    *   3095
    *   3258
    *   3323
    *   3407
    *   3570
    *   3751
    *   3788
*   RedM
    *   1311
    *   1355
    *   1436
    *   1491
*   LibertyM
    *   43
*   FXServer
    *   0

## Usage

### Lua

```lua
local retval = GetGameBuildNumber()

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

### JavaScript

```js
const retval = GetGameBuildNumber();

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

### C#

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

*Sources: Cfx.re native reference.*
