_HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED
Checks if the player has damaged the ped they recently attacked.
Hash
0x72AD59F7B7FB6E24Runtime name
HasPlayerDamagedRecentlyAttackedPedNamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_HAS_PLAYER_DAMAGED_ANY_PED_RECENTLYSignature
BOOL _HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED(Player player, int recentlyMs);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
recentlyMs | int | — |
Returns BOOL
Description
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.
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
local retval = HasPlayerDamagedRecentlyAttackedPed(player, recentlyMs)
-- always works, by hash
local retval = Citizen.InvokeNative(0x72AD59F7B7FB6E24, player, recentlyMs, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = HasPlayerDamagedRecentlyAttackedPed(player, recentlyMs);
// by hash
const retval = Citizen.invokeNative('0x72AD59F7B7FB6E24', player, recentlyMs, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.