RedM Natives

GET_GAME_VERSION_NAME

Return example: 1207.69_dev_pc, 1436.28_dev_live_tu Old name: _GET_GAME_BUILD_STRING

Hash0x05A5F662AD35C573
Runtime nameGetGameVersionName
NamespaceDEBUG
SideClient
NameOfficial
Docs
Since build1207

Not called by the game's own scripts — behaviour may be incomplete.

Signature

const char* GET_GAME_VERSION_NAME();

Returns const char*

Description

Return example: 1207.69_dev_pc, 1436.28_dev_live_tu

Old name: _GET_GAME_BUILD_STRING

Usage

Lua
local retval = GetGameVersionName()

-- always works, by hash
local retval = Citizen.InvokeNative(0x05A5F662AD35C573, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = GetGameVersionName();

// by hash
const retval = Citizen.invokeNative('0x05A5F662AD35C573', Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
string retval = Function.Call<string>((Hash)0x05A5F662AD35C573);

Sources

alloc8or RDR3 NativeDB

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