RedM Natives

GET_GAME_BUILD_NUMBER

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

Hash0x804B9F7B
Runtime nameGetGameBuildNumber
NamespaceCFX
SideClient + server
NameOfficial
Docs

Signature

int GET_GAME_BUILD_NUMBER();

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

Description

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
local retval = GetGameBuildNumber()

-- always works, by hash
local retval = Citizen.InvokeNative(0x804b9f7b, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetGameBuildNumber();

// by hash
const retval = Citizen.invokeNative('0x804b9f7b', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x804b9f7b);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.