Open Bank/ATM
openBank(bankType, screenType)🔹 Description
Opens the banking UI for the player. This function is used to programmatically open the bank or ATM interface depending on the context.
🔧 Parameters
| Name | Type | Description |
|---|---|---|
bankType | string | Determines the bank type. Example values: "swiss" or "fleeca" |
screenType | string | Decides the interface to show: "bank" for full banking, "atm" for ATM. |
🧠 Usage Example
exports['kartik-banking']:openBank('fleeca', 'bank')This will open the Fleeca bank interface with the full banking screen.
exports['kartik-banking']:openBank('swiss', 'atm')This opens a Swiss ATM interface.