# Configuration

Welcome to the **STG Bank Script** configuration guide! This script provides advanced banking features for your FiveM server, including realistic banking interactions, IBAN management, and donation systems. Below is a detailed breakdown of all configurable parameters and features.

***

### <mark style="color:blue;">General Configuration</mark>

| **Parameter**                                              | **Description**                                                                               | **Example Value** |
| ---------------------------------------------------------- | --------------------------------------------------------------------------------------------- | ----------------- |
| <mark style="color:green;">`Config.Framework`</mark>       | Determines which framework to use: `auto`, `esx`, or `qb`.                                    | `"auto"`          |
| <mark style="color:green;">`Config.Language`</mark>        | Sets the default language for in-game messages (supports `en`, `de`, `fr`, `sp`, `pt`, `jp`). | `"en"`            |
| <mark style="color:green;">`Config.Target`</mark>          | Enables or disables target functionality for ATM or bank interactions.                        | `false`           |
| <mark style="color:green;">`Config.serverName`</mark>      | Name of your server, displayed in the banking UI.                                             | `"STG Bank"`      |
| <mark style="color:green;">`Config.ibanNumber`</mark>      | Length of the IBAN numbers generated for users.                                               | `6`               |
| <mark style="color:green;">`Config.oldQbManagement`</mark> | Enables compatibility with the old QB Management script.                                      | `false`           |
| <mark style="color:green;">`Config.ibanCost`</mark>        | Cost for users to change their IBAN number.                                                   | `3000`            |

***

### <mark style="color:blue;">Donation System Configuration</mark>

| **Parameter**                                     | **Description**                                                                                        | **Example** |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ----------- |
| <mark style="color:green;">`Config.Donate`</mark> | A table defining donation options for specific jobs. Includes job name, title, description, and price. | See below.  |

<mark style="color:blue;">**Example Donation Table:**</mark>

```lua
Config.Donate = {
    [1] = {
        job = "police",
        title = "Support the Police Department!",
        description = "Help the police department improve public safety and ensure a safer community by supporting their operations.",
        price = 5000
    },
    [2] = {
        job = "ambulance",
        title = "Support the Medical Services!",
        description = "Contribute to the ambulance team to help them provide better medical care and save lives more effectively.",
        price = 10000
    }
}
```

***

### <mark style="color:blue;">ATM and Bank Prop Configuration</mark>

| **Parameter**                                        | **Description**                                           | **Example Values**                 |
| ---------------------------------------------------- | --------------------------------------------------------- | ---------------------------------- |
| <mark style="color:green;">`Config.ATMProps`</mark>  | List of prop names for ATMs that users can interact with. | `'prop_atm_03', 'prop_fleeca_atm'` |
| <mark style="color:green;">`Config.BankProps`</mark> | List of prop names for bank displays.                     | `'v_corp_fleeca_display'`          |

***

### <mark style="color:blue;">Localization</mark>

The script supports multiple languages. Below is an example of English (`"en"`) localization:

***

### <mark style="color:blue;">Framework Detection</mark>

The script automatically detects and integrates with your server's framework using the following function:

***
