GET_CURRENT_GAME_NAME
This native returns the currently used game's name.
Signature
char* GET_CURRENT_GAME_NAME();Returns char* — The game name as a string, one of the following values: gta4, gta5, rdr3
Description
This native returns the currently used game's name.
Usage
local retval = GetCurrentGameName()
-- always works, by hash
local retval = Citizen.InvokeNative(0xaca18ecd, Citizen.ResultAsString())JavaScript and C#
const retval = GetCurrentGameName();
// by hash
const retval = Citizen.invokeNative('0xaca18ecd', Citizen.returnResultAnyway(), Citizen.resultAsString());string retval = Function.Call<string>((Hash)0xaca18ecd);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.