# SCRIPT::BG_GET_LAUNCH_PARAM_VALUE

- **Hash:** `0x55C40B7592BAD213`
- **Namespace:** SCRIPT
- **Runtime name (Lua/JS):** `BgGetLaunchParamValue`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **Note:** not used by the game's own scripts
- **URL:** https://natives.borderlinerp.com/natives/SCRIPT/BG_GET_LAUNCH_PARAM_VALUE

## Signature

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

## Parameters

- `scriptIndex` (`int`)
- `p1` (`const char*`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = BgGetLaunchParamValue(scriptIndex, p1)

-- always available, by hash
local retval = Citizen.InvokeNative(0x55C40B7592BAD213, scriptIndex, p1, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = BgGetLaunchParamValue(scriptIndex, p1);

// by hash
const retval = Citizen.invokeNative('0x55C40B7592BAD213', scriptIndex, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x55C40B7592BAD213, scriptIndex, p1);
```

*Sources: alloc8or RDR3 NativeDB.*
