Get ped player has just punched

natives
help
lua
ped

#1

whats the best way to return the ped a player has just punched?


#2

I guess your looking for: IS_PED_IN_MELEE_COMBAT


#3

that returns true for my ped/player but i want to get the ped thats been hit


#4

Well there is no native for that I don’t think, so only way to find out what ped just got hit is to check if your in distance of another ped, if you are then check if there is no gun equiped and left click is pressed, then you know you hit somebody and u know which ped because there is a native that returns peds within range.