Get ped player has just punched

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

I guess your looking for: IS_PED_IN_MELEE_COMBAT

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

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.