bgGetLaunchParamValue
BG_GET_LAUNCH_PARAM_VALUE0x22E21FBCFC88C149The 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.
bgGetLaunchParamValue(scriptIndex: number, p1: string): numberbgGetLaunchParamValue(scriptIndex: integer, p1: string): integerUsage
JavaScript
const result = bgGetLaunchParamValue(scriptIndex, p1);Lua
local result = bgGetLaunchParamValue(scriptIndex, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scriptIndex | int | number | integer |
p1 | string | string | string |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Script SCRIPT
- In the game
int BG_GET_LAUNCH_PARAM_VALUE(int scriptIndex, const char* p1)- Hash
0x22E21FBCFC88C149