Fivem, wie man prüft, wo der nächste Spieler ist
GET_CLOSEST_PLAYER_TO_ENITY
Sore Skipper
GET_CLOSEST_PLAYER_TO_ENITY
For example, you could use GET_CLOSEST_PLAYER_TO_ENITY then, check to make sure that the player is within a certain distance. There, you’ve just reduced the search from 32 players to one.
If you want to be able to cuff any ped then you could use GET_CLOSEST_PED