# ENTITY::HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY

- **Hash:** `0x7B6E7BEC1143AC86`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `HasEntityBeenDamagedByEntity`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY

## Signature

```c
BOOL HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY(Entity entity1, Entity entity2, BOOL p2, BOOL p3);
```

## Parameters

- `entity1` (`Entity`)
- `entity2` (`Entity`)
- `p2` (`BOOL`)
- `p3` (`BOOL`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = HasEntityBeenDamagedByEntity(entity1, entity2, p2, p3)

-- always available, by hash
local retval = Citizen.InvokeNative(0x7B6E7BEC1143AC86, entity1, entity2, p2, p3, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = HasEntityBeenDamagedByEntity(entity1, entity2, p2, p3);

// by hash
const retval = Citizen.invokeNative('0x7B6E7BEC1143AC86', entity1, entity2, p2, p3, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x7B6E7BEC1143AC86, entity1, entity2, p2, p3);
```

*Sources: alloc8or RDR3 NativeDB.*
