RedM Natives

BG_DOES_LAUNCH_PARAM_EXIST

Hash0x4AE1DFF337A86FDE
Runtime nameBgDoesLaunchParamExist
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0F6F1EBBC4E1D5E6

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

Signature

BOOL BG_DOES_LAUNCH_PARAM_EXIST(int scriptIndex, const char* p1);

Parameters

NameTypeDescription
scriptIndexint—
p1const char*—

Returns BOOL

Usage

Lua
local retval = BgDoesLaunchParamExist(scriptIndex, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0x4AE1DFF337A86FDE, scriptIndex, p1, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = BgDoesLaunchParamExist(scriptIndex, p1);

// by hash
const retval = Citizen.invokeNative('0x4AE1DFF337A86FDE', scriptIndex, p1, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x4AE1DFF337A86FDE, scriptIndex, p1);

Sources

alloc8or RDR3 NativeDB

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