{"hash":"0x72AD59F7B7FB6E24","ns":"PLAYER","name":"_HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED","slug":"_HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED","official":false,"named":true,"luaName":"HasPlayerDamagedRecentlyAttackedPed","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"player","type":"Player"},{"name":"recentlyMs","type":"int"}],"summary":"Checks if the player has damaged the ped they recently attacked.","descriptions":[{"source":"alloc8or","format":"text","body":"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":"vorp","format":"text","body":"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\nduration is in miliseconds"}],"examples":[],"aliases":["_HAS_PLAYER_DAMAGED_ANY_PED_RECENTLY"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PLAYER/_HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_HAS_PLAYER_DAMAGED_RECENTLY_ATTACKED_PED.md","snippets":{"lua":"local retval = HasPlayerDamagedRecentlyAttackedPed(player, recentlyMs)","luaInvoke":"local retval = Citizen.InvokeNative(0x72AD59F7B7FB6E24, player, recentlyMs, Citizen.ReturnResultAnyway())","js":"const retval = HasPlayerDamagedRecentlyAttackedPed(player, recentlyMs);","jsInvoke":"const retval = Citizen.invokeNative('0x72AD59F7B7FB6E24', player, recentlyMs, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x72AD59F7B7FB6E24, player, recentlyMs);","notes":["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."]}}