Skip to content
On this page

Athena.utility.closest

Variables

default

default: Object

Type declaration

NameType
getClosestPlayer(pos: IVector3, ignoredIds: number[]) => alt.Player | undefined
getClosestVehicle(pos: IVector3) => alt.Vehicle | undefined

Defined in

server/utility/closest.ts:43

Functions

getClosestPlayer

Usage

Athena.utility.closest.getClosestPlayer(pos, ignoredIds?): alt.Player | undefined

Gets the closest player to a position.

Parameters

NameTypeDefault valueDescription
posIVector3undefinedA position in the world.
ignoredIdsnumber[][]-

Returns

alt.Player | undefined

Defined in

server/utility/closest.ts:23


getClosestVehicle

Usage

Athena.utility.closest.getClosestVehicle(pos): alt.Vehicle | undefined

Gets the closest vehicle to a position.

Parameters

NameTypeDescription
posIVector3A position in the world.

Returns

alt.Vehicle | undefined

Defined in

server/utility/closest.ts:11

Created by Stuyk | Est. 2020