GET_GAME_BUILD_NUMBER
Returns the internal build number of the current game being executed.
Signature
int GET_GAME_BUILD_NUMBER();Returns int — The build number, or **0** if no build number is known.
Description
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
local retval = GetGameBuildNumber()
-- always works, by hash
local retval = Citizen.InvokeNative(0x804b9f7b, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetGameBuildNumber();
// by hash
const retval = Citizen.invokeNative('0x804b9f7b', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x804b9f7b);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.