Skip to main content
Creates a new safe and saves it to the database.
ArgumentData TypeNeededDefaultDescription
safe_idstring❌nilThe unique id of the safe, if nil a new one is generated
modelstring✅-The safe model (key) defined in Config.Safes
coordsvector3✅-The coordinates where the safe will be placed
rotationvector3✅-The rotation of the safe
optionstable❌nilOverrides the safe inventory (label, slots, weight), if nil the inventory defined in Config.Safes is used
TypeDescription
booleantrue if the safe has been created, false otherwise
stringThe id of the created safe, or the error message if the safe has not been created (Invalid safe data if the model does not exist or the id is not a string, Safe already exists if a safe with that id already exists)