Skip to main content
Check if the current bank door is open. (Works only if the player is inside a bank)
ArgumentData TypeNeededDefaultDescription
doorIdstring-Internal id to refer the door, generally can be one of the following values: vault, prevault, shutters
TypeDescription
booleantrue if the door is open, false otherwise
if exports["utility_bank"]:IsInsideBank() then
    local open = exports["utility_bank"]:IsCurrentBankDoorOpen("vault")

    print("The vault door is: "..(open and "open" or "closed"))
end