| Argument | Data Type | Needed | Default | Description |
|---|---|---|---|---|
coords | vector3 | ❌ | nil | The coordinates to search from, if nil the distance is ignored and a matching safe is returned |
distance | number | ❌ | nil | The maximum distance from coords, if nil there is no limit |
model | string | ❌ | nil | Only match safes of this model, if nil every model is matched |
Returns
Returns
| Type | Description |
|---|---|
| string | nil | The id of the nearest matching safe, or nil if none was found |
Example
Example