# PED::_GET_PEDS_IN_COMBAT_WITH_TARGET

- **Hash:** `0x7BE607DAFF382FD2`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `GetPedsInCombatWithTarget`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/_GET_PEDS_IN_COMBAT_WITH_TARGET

## Signature

```c
int _GET_PEDS_IN_COMBAT_WITH_TARGET(Ped ped, ItemSet itemset, int flag);
```

## Parameters

- `ped` (`Ped`)
- `itemset` (`ItemSet`)
- `flag` (`int`)

## Returns

`int`

## Usage

### Lua

```lua
local retval = GetPedsInCombatWithTarget(ped, itemset, flag)

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

### JavaScript

```js
const retval = GetPedsInCombatWithTarget(ped, itemset, flag);

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

### C#

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

- 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.

## See also

- [PED::COUNT_PEDS_IN_COMBAT_WITH_TARGET](https://natives.borderlinerp.com/natives/PED/COUNT_PEDS_IN_COMBAT_WITH_TARGET.md)

*Sources: alloc8or RDR3 NativeDB.*
