GetClosestPlayer
Jump to navigation
Jump to search
Description:
Gets the closest player to an NPC
Parameters:
(checkteam=false)
checkteam: If this optional parameter is provided true, the id of the closest player whose team id is not that of npc will be returned.
Return Values:
The playerid of the closest player according to the parameters specified or 255 if there is no such closest player. It checks only players streamed in.