Client
ClosestPed
Function to get the closest ped to the player
Parameters description
returnClosePeds
- sets whether or not return all close peds found
Return description
closestPed
- the closest ped to the player with its ped Id and distance between the pedsclosePeds
- all close peds found around the player with their ped Ids and distances between them and the player (only available when returnClosePeds is true)
ClosestVehicle
Function to get the closest vehicle to the player
Parameters description
returnCloseVehs
- sets whether or not return all close vehicles found
Return description
closestVehicle
- the closest vehicle to the player with its vehicle Id and distance between the player and vehiclecloseVehicles
- all close vehicles found around the player with their vehicle Ids and distances between the player and them (only available when returnCloseVehs is true)
ClosestObject
Function to get the closest object to the player
Parameters description
returnCloseObjects
- sets whether or not return all close objects found
Return description
closestObject
- the closest object to the player with its object Id and distance between the player and objectcloseObjects
- all close objects found around the player with their object Ids and distances between the player and them (only available when returnCloseObjects is true)
ClosestIPlayer
Function to get the information of IPlayer for the closest player to the current player
Parameters description
returnCloseIPlayers
- sets whether or not return all close IPlayers found around the player
Return description
closestIPlayer
- the closest player's IPlayer informationcloseIPlayers
- all close players' IPlayer information (only available when returnCloseIPlayers is true)
Last updated