RedM Natives

_HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED

Checks if the player has damaged the ped they recently attacked.

Hash0x72AD59F7B7FB6E24
Runtime nameHasPlayerDamagedRecentlyAttackedPed
NamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_HAS_PLAYER_DAMAGED_ANY_PED_RECENTLY

Signature

BOOL _HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED(Player player, int recentlyMs);

Parameters

NameTypeDescription
playerPlayer—
recentlyMsint—

Returns BOOL

Description

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.

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
local retval = HasPlayerDamagedRecentlyAttackedPed(player, recentlyMs)

-- always works, by hash
local retval = Citizen.InvokeNative(0x72AD59F7B7FB6E24, player, recentlyMs, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = HasPlayerDamagedRecentlyAttackedPed(player, recentlyMs);

// by hash
const retval = Citizen.invokeNative('0x72AD59F7B7FB6E24', player, recentlyMs, Citizen.returnResultAnyway());
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.