> ## 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.

# How to create a new bank type

Open the config and scroll to `Config.BankTypes` \
To create a new bank type, add a table entry with your chosen name.

<img src="https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/image%20(4).png?fit=max&auto=format&n=kwHIQSAhiVWpKX8t&q=85&s=3d83c6191b102a342bbdb7ae4cf0114c" alt="Image" height="300" className="rounded-md" data-path="images/image (4).png" />

Every bank type require:

* **coords**: Used to spawn robbery blip and calculate distance to handle *In/Out/Near* states <a href="how-to-create-a-new-bank-type#how-to-get-offset-from-interior%3F" target="_self">offset</a>
* **hostagesRoom**: hostages room center, used to draw intimidation bar <a href="how-to-create-a-new-bank-type#how-to-get-offset-from-interior%3F" target="_self">offset</a>
* **hostagesDistance**: distance from **hostagesRoom** from which onward the player results in the hostagesRoom <span className="text-yellow-400">(optional, default: 4.5)</span>
* **insideDistance**: distance from **coords** from which onward the player results *inside* the bank
* **nearDistance**: distance from **coords** from which onward the player results *near* the bank
* **In**: function called when the player enters the bank (please copy the In function of another);
* **Out**: function called when the player exits the bank
* **trollies**: table with all trollies (last coordinate is the heading) <a href="how-to-create-a-new-bank-type#how-to-get-offset-from-interior%3F" target="_self">offset</a>\
  &#x20; types: cash, gold, diamond
* **doors**: all doors data
* **peds**: all peds data

<Note>
  The vault hacking panel is automatically detected within a 30 meter radius of
  the vault door and currently only recognizes the model
  `hei_prop_hei_securitypanel`
</Note>

After you have finished creating your bank type you can create a new bank in the `Config.Banks` that uses your newly created bank type

***

## How to get interior informations?

To retrieve interior information, use the `getInteriorInfo` command (client console).

<img src="https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/image%20(6).png?fit=max&auto=format&n=kwHIQSAhiVWpKX8t&q=85&s=7fcf72239442c2c9e58fb35550ec2048" alt="Image" height="300" className="rounded-md" data-path="images/image (6).png" />

## How to get offset from interior?

To determine the offset from the interior, use the `getInteriorOffset` command (client console). \
This command provides you the offset from your current position within the interior.

<img src="https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/image%20(7).png?fit=max&auto=format&n=kwHIQSAhiVWpKX8t&q=85&s=3d621d0b706902a6e25491df75e2d7ad" alt="Image" height="300" className="rounded-md" data-path="images/image (7).png" />
