RedM Natives

BG_GET_LAUNCH_PARAM_VALUE

Hash0x55C40B7592BAD213
Runtime nameBgGetLaunchParamValue
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x22E21FBCFC88C149

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

Signature

int BG_GET_LAUNCH_PARAM_VALUE(int scriptIndex, const char* p1);

Parameters

NameTypeDescription
scriptIndexint—
p1const char*—

Returns int

Usage

Lua
local retval = BgGetLaunchParamValue(scriptIndex, p1)

-- always works, by hash
local retval = Citizen.InvokeNative(0x55C40B7592BAD213, scriptIndex, p1, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = BgGetLaunchParamValue(scriptIndex, p1);

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

Sources

alloc8or RDR3 NativeDB

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