# PLAYER::_HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED

- **Hash:** `0x72AD59F7B7FB6E24`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `HasPlayerDamagedRecentlyAttackedPed`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **Other names:** `_HAS_PLAYER_DAMAGED_ANY_PED_RECENTLY`
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED

## Signature

```c
BOOL _HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED(Player player, int recentlyMs);
```

## Parameters

- `player` (`Player`)
- `recentlyMs` (`int`)

## Returns

`BOOL`

## Description

*Source: alloc8or RDR3 NativeDB*

Checks if the player has damaged the ped they recently attacked. Useful for determining if the player's recent attack on a ped resulted in damage.

*Source: VORPCORE RDR3natives*

this native checks if the player has damaged or killed any ped human/animal recently within the duration passed, either by shooting or even using melee
duration is in miliseconds

## Usage

### Lua

```lua
local retval = HasPlayerDamagedRecentlyAttackedPed(player, recentlyMs)

-- always available, by hash
local retval = Citizen.InvokeNative(0x72AD59F7B7FB6E24, player, recentlyMs, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = HasPlayerDamagedRecentlyAttackedPed(player, recentlyMs);

// by hash
const retval = Citizen.invokeNative('0x72AD59F7B7FB6E24', player, recentlyMs, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x72AD59F7B7FB6E24, player, recentlyMs);
```

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