ESX.Game.GetClosestObject¶
1 | ESX.Game.GetClosestObject(filter, coords) |
This function gets the closest object.
Arguments¶
| Argument | Data Type | Optional | Default Value | Explanation |
|---|---|---|---|---|
| filter | table | No | - | A whitelist table with object names |
| coords | table | No | - | Coords to search at |