mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
18 lines
313 B
Markdown
18 lines
313 B
Markdown
### lib.getClosestObject
|
|
|
|
Get the object handle and coords of the closest object to a set of coordinates.
|
|
|
|
```lua
|
|
lib.getClosestObject(coords, maxDistance)
|
|
```
|
|
|
|
* coords: `vector3`
|
|
* The coords to check from.
|
|
* maxDistance: `number`
|
|
* The max distance to check.
|
|
|
|
Return:
|
|
|
|
* ped?: `number`
|
|
* coords?: `number`
|