BG_GET_LAUNCH_PARAM_VALUE
Hash
0x55C40B7592BAD213Runtime name
BgGetLaunchParamValueNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x22E21FBCFC88C149Not called by the game's own scripts — behaviour may be incomplete.
Signature
int BG_GET_LAUNCH_PARAM_VALUE(int scriptIndex, const char* p1);Parameters
| Name | Type | Description |
|---|---|---|
scriptIndex | int | — |
p1 | const char* | — |
Returns int
Usage
local retval = BgGetLaunchParamValue(scriptIndex, p1)
-- always works, by hash
local retval = Citizen.InvokeNative(0x55C40B7592BAD213, scriptIndex, p1, Citizen.ResultAsInteger())JavaScript and C#
const retval = BgGetLaunchParamValue(scriptIndex, p1);
// by hash
const retval = Citizen.invokeNative('0x55C40B7592BAD213', scriptIndex, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x55C40B7592BAD213, scriptIndex, p1);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.