Skip to main content
Finds the nearest safe, optionally filtered by distance and model. Only enabled safes are searched.
ArgumentData TypeNeededDefaultDescription
coordsvector3❌nilThe coordinates to search from, if nil the distance is ignored and a matching safe is returned
distancenumber❌nilThe maximum distance from coords, if nil there is no limit
modelstring❌nilOnly match safes of this model, if nil every model is matched
TypeDescription
string | nilThe id of the nearest matching safe, or nil if none was found