# WEAPON::_GET_NUM_PEDS_RESTRAINED_FROM_BOLAS

- **Hash:** `0x46D42883E873C1D7`
- **Namespace:** WEAPON
- **Runtime name (Lua/JS):** `GetNumPedsRestrainedFromBolas`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1232
- **Other names:** `_GET_NUM_PEDS_RESTRAINED_FROM_WEAPON_BOLAS`
- **URL:** https://natives.borderlinerp.com/natives/WEAPON/_GET_NUM_PEDS_RESTRAINED_FROM_BOLAS

## Signature

```c
int _GET_NUM_PEDS_RESTRAINED_FROM_BOLAS(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`int`

## Description

*Source: VORPCORE RDR3natives*

returns the amount of peds that were restrained with the weapon thrown bolas

## Usage

### Lua

```lua
local retval = GetNumPedsRestrainedFromBolas(ped)

-- always available, by hash
local retval = Citizen.InvokeNative(0x46D42883E873C1D7, ped, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetNumPedsRestrainedFromBolas(ped);

// by hash
const retval = Citizen.invokeNative('0x46D42883E873C1D7', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x46D42883E873C1D7, ped);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
