FearlessStudios

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

server.lua
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: true when the vault closes; false if the vault ID is invalid.