Files
overextended.github.io/docs/ox_lib/GetClosestObject/Client.md
T
2023-05-22 07:20:18 +10:00

313 B

lib.getClosestObject

Get the object handle and coords of the closest object to a set of coordinates.

lib.getClosestObject(coords, maxDistance)
  • coords: vector3
    • The coords to check from.
  • maxDistance: number
    • The max distance to check.

Return:

  • ped?: number
  • coords?: number