safes logic
Explanation Of How The Safes Work
Safes Logic
Secure Safes let players place a safe in the world, lock it with a 4‑digit code, and store items inside. Every interaction happens through the target system (no commands needed).
How it works:
A safe item is used → a placement preview appears.
The player confirms placement → a safe is created and saved in the database.
The safe starts locked with a passcode.
Anyone with the correct code can unlock it, then open it.
The owner can change the code anytime.
Safes can be moved only when empty and with no upgrades installed.
Breach logic:
Safes can be hacked or drilled (configurable).
Each safe has a limited number of breach attempts.
After too many failed tries, it locks down for a cooldown.
Upgrades can block hacking (Vault Seal) or drilling (Anti‑Drill).
Upgrades:
Storage upgrades increase slots and weight.
Alarm upgrade adds a blinking light and sound during breach attempts.
Upgrades can be removed if there is enough free space.
Last updated