ScriptClient

bgGetLaunchParamValue

BG_GET_LAUNCH_PARAM_VALUE0x22E21FBCFC88C149

The GTA V native BG_GET_LAUNCH_PARAM_VALUE of the SCRIPT namespace, as LS:MP client scripts call it: the global function bgGetLaunchParamValue, in JavaScript and in Lua.

SignatureJavaScript
bgGetLaunchParamValue(scriptIndex: number, p1: string): number
SignatureLua
bgGetLaunchParamValue(scriptIndex: integer, p1: string): integer

Usage

JavaScript
const result = bgGetLaunchParamValue(scriptIndex, p1);
Lua
local result = bgGetLaunchParamValue(scriptIndex, p1)

Parameters

ParameterTypeJavaScriptLua
scriptIndexintnumberinteger
p1stringstringstring

Returns

int JavaScript number, Lua integer

Reference

Namespace
Script SCRIPT
In the game
int BG_GET_LAUNCH_PARAM_VALUE(int scriptIndex, const char* p1)
Hash
0x22E21FBCFC88C149

Open in the interactive natives reference