For example, you could use GET_CLOSEST_PLAYER_TO_ENITY then, checkto make sure that the player iswithin a certain distance. There, you’ve just reduced the searchfrom32 players to one.
If you want to be able to cuff any ped then you could use GET_CLOSEST_PED