Athena.utility.closest ​
Variables ​
default ​
• default: Object
Type declaration ​
Name | Type |
---|---|
getClosestPlayer | (pos : IVector3 , ignoredIds : number []) => alt.Player | undefined |
getClosestVehicle | (pos : IVector3 ) => alt.Vehicle | undefined |
Defined in ​
Functions ​
getClosestPlayer ​
Usage
Athena.utility.closest.getClosestPlayer(pos
, ignoredIds?
): alt.Player
| undefined
Gets the closest player to a position.
Parameters ​
Name | Type | Default value | Description |
---|---|---|---|
pos | IVector3 | undefined | A position in the world. |
ignoredIds | number [] | [] | - |
Returns ​
alt.Player
| undefined
Defined in ​
getClosestVehicle ​
Usage
Athena.utility.closest.getClosestVehicle(pos
): alt.Vehicle
| undefined
Gets the closest vehicle to a position.
Parameters ​
Name | Type | Description |
---|---|---|
pos | IVector3 | A position in the world. |
Returns ​
alt.Vehicle
| undefined