Namespace Utils
Package: @altmp/altv-types
Functions
| Improve this Doc View SourcegetClosestPlayer({ pos: IVector3 })
Declaration
getClosestPlayer(options: { pos: IVector3 }): Player | null
Parameters
| Type | Name | Description |
|---|---|---|
| { pos: IVector3 } | options |
Returns
| Type | Description |
|---|---|
| Player | null |
getClosestVehicle({ pos: IVector3 })
Declaration
getClosestVehicle(options: { pos: IVector3 }): Vehicle | null
Parameters
| Type | Name | Description |
|---|---|---|
| { pos: IVector3 } | options |
Returns
| Type | Description |
|---|---|
| Vehicle | null |