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

17 lines
324 B
Markdown

### lib.getNearbyObjects
Get the object handle and coords of all objects within range of a set of coordinates.
```lua
lib.getNearbyObjects(coords, maxDistance)
```
* coords: `vector3`
* The coords to check from.
* maxDistance: `number`
* The max distance to check.
Return:
* `{ object: number, coords: vector3 }[]`