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

![Image](https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/image%20\(4\).png?fit=max\&auto=format\&n=kwHIQSAhiVWpKX8t\&q=85\&s=3d83c6191b102a342bbdb7ae4cf0114c)

Every bank type require:

* **coords**: Used to spawn robbery blip and calculate distance to handle *In/Out/Near* states [offset](https://docs.markz3d.com/utility-bank/how-to-create-a-new-bank-type.md#how-to-get-offset-from-interior%3F)
* **hostagesRoom**: hostages room center, used to draw intimidation bar [offset](https://docs.markz3d.com/utility-bank/how-to-create-a-new-bank-type.md#how-to-get-offset-from-interior%3F)
* **hostagesDistance**: distance from **hostagesRoom** from which onward the player results in the hostagesRoom (optional, default: 4.5)
* **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) [offset](https://docs.markz3d.com/utility-bank/how-to-create-a-new-bank-type.md#how-to-get-offset-from-interior%3F)\
  &#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`

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

![Image](https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/image%20\(6\).png?fit=max\&auto=format\&n=kwHIQSAhiVWpKX8t\&q=85\&s=7fcf72239442c2c9e58fb35550ec2048)

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

![Image](https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/image%20\(7\).png?fit=max\&auto=format\&n=kwHIQSAhiVWpKX8t\&q=85\&s=3d621d0b706902a6e25491df75e2d7ad)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.