CloseVaultById
Server export to close a vault by ID
CloseVaultById
Close a configured vault from server code. Pass the vault's ID, not the door's model or coordinates.
Call the export
exports["FS-Robberies"]:CloseVaultById("paleto_main")Which vault ID to pass
Prop
Type
Check whether it worked
Check the boolean directly. Closing uses the saved vault ID; it also clears the vault’s tracked inside-loot list.
- boolean:
truewhen the vault closes;falseif the vault ID is invalid.