> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markz3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IsInsideBank

Check if the player is inside a bank.

<Accordion title="Returns" className="w-full">
  <div class="rounded-lg overflow-hidden">
    <table class="not-prose w-full rounded-lg text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
      <thead class="thead text-xs border-b border-[1px] text-gray-800 uppercase bg-gray-50 dark:bg-gray-700 dark:text-white">
        <tr>
          <th scope="col" class="px-6 py-3 whitespace-nowrap">
            Type
          </th>

          <th scope="col" class="px-6 py-3 whitespace-nowrap">
            Description
          </th>
        </tr>
      </thead>

      <tbody>
        <tr class="body-item body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
          <td class="px-6 py-4">boolean</td>

          <td class="px-6 py-4">
            true if the player is inside a bank, false otherwise
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</Accordion>

<Accordion title="Example" className="w-full">
  ```lua theme={null}
  if exports["utility_bank"]:IsInsideBank() then
      local open = exports["utility_bank"]:IsCurrentBankDoorOpen("vault")

      print("The vault door is: "..(open and "open" or "closed"))
  end
  ```
</Accordion>
