📜  Fivem 获得最近的玩家 - Lua 代码示例

📅  最后修改于: 2022-03-11 14:54:54.898000             🧑  作者: Mango

代码示例2
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