> For the complete documentation index, see [llms.txt](https://oneclub-scripts.gitbook.io/oneclub-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oneclub-scripts.gitbook.io/oneclub-scripts-docs/free-script/oneclub-banking/instalation-qb-qbox-esx.md).

# Instalation \[QB, QBOX, ESX]

1. Unzip the `oneclub_banking_main`
2. Drag `[oneclub_bridge] + [oneclub_banking] + [oc_bruteforce]`  into a new folder and ensure it&#x20;
   1. `ensure [famework]`
   2. `ensure [ox]`
   3. `ensure oc-bruteforce`
   4. `ensure oc-bridge`
   5. `ensure oneclub_banking`
3. Import the SQL file located at: sql/fleeca\_banking.sql
4. Import items and images to ox\_inventory (oneclub\_banking/INSTALL.txt)

{% hint style="info" %}
Please remove qb-banking or another source for banking
{% endhint %}

<details>

<summary>🔔 <strong>OX_INVENTORY IMPORT</strong> </summary>

📍 **Import Images** \[Source: oneclub\_banking/web/images] - (onclub\_card.png + pin\_decoder.png) \
📍 **Where?** ox\_inventory/web/images/

```
['pin_decoder'] = {
    label = 'PIN Decoder',
    weight = 250,
    stack = false,
    close = true,
    description = 'Illegal device used to recover a PIN from stolen card data.',
    client = {
      image = 'pin_decoder.png',
      export = 'oneclub_banking.UsePinDecoder'
    }
  },
```

```
['oneclub_card'] = {
    label = 'Bank Card',
    weight = 10,
    stack = false,
    close = true,
    description = 'Payment card.',
    client = {
        image = 'oneclub_card.png',
    }
	},
```

</details>

{% tabs %}
{% tab title="QB-CORE SQL" %}
All installation tables are located in **`oneclub_banking/sql/qb.sql`**.\
You need to install **7 different database tables** from this file:

* oneclub\_banking\_accounts
* oneclub\_banking\_cards
* oneclub\_banking\_transaction\`
* oneclub\_banking\_credit\_profile
* oneclub\_banking\_loans
* oneclub\_banking\_loan\_installments
* bank\_accounts\_member
* bank\_accounts (You are not creating new table, only adding "additional collums")

{% hint style="warning" %}
Please note that the script **requires the `bank_accounts` table to already exist** in your database. The installation only **adds additional columns to the existing `bank_accounts` table**, it does not create it.
{% endhint %}

{% hint style="danger" %}
Make sure your server already has the `bank_accounts` table installed before running the SQL file.
{% endhint %}
{% endtab %}

{% tab title="QBOX SQL" %}
All installation tables are located in **`oneclub_banking/sql/qbx.sql`**.\
You need to install **7 different database tables** from this file:

* oneclub\_banking\_accounts
* oneclub\_banking\_cards
* oneclub\_banking\_transaction\`
* oneclub\_banking\_credit\_profile
* oneclub\_banking\_loans
* oneclub\_banking\_loan\_installments
* bank\_accounts\_new (You are not creating new table, only adding "additional collums")
* bank\_accounts\_member

If you **don’t have the `bank_accounts_new` table**, you can create it manually and import the following prepared structure and example data. \* These are **example society accounts**. You can modify or remove them depending on the jobs used on your server.

{% hint style="warning" %}
Please note that the script **requires the `bank_accounts_new` table to already exist** in your database. The installation only **adds additional columns to the existing `bank_accounts_new` table**, it does not create it.
{% endhint %}

{% hint style="danger" %}
Make sure your server already has the `bank_accounts_new` table installed before running the SQL file.
{% endhint %}

If you **don’t have the `bank_accounts_new` table**, you can create it manually and import the following prepared structure and example data. \* These are **example society accounts**. You can modify or remove them depending on the jobs used on your server.

```sql
CREATE TABLE IF NOT EXISTS `bank_accounts_new` (
    `id` VARCHAR(50) NOT NULL,
    `amount` INT(11) DEFAULT 0,
    `transactions` LONGTEXT DEFAULT '[]',
    `auth` LONGTEXT DEFAULT '[]',
    `isFrozen` INT(11) DEFAULT 0,
    `creator` VARCHAR(50) DEFAULT NULL,
    PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
```

```sql
INSERT INTO bank_accounts_new 
(id, account_name, account_type, account_number, amount, transactions, auth, isFrozen, creator, citizenid, identifier, deleted)
VALUES
(1001, 'police',     'society', 'SOC-POLICE-001', 0, '[]', '[]', 0, 'system', NULL, NULL, 0),
(1002, 'ambulance',  'society', 'SOC-EMS-001',    0, '[]', '[]', 0, 'system', NULL, NULL, 0),
(1003, 'mechanic',   'society', 'SOC-MECH-001',   0, '[]', '[]', 0, 'system', NULL, NULL, 0),
(1004, 'government', 'society', 'SOC-GOV-001',    0, '[]', '[]', 0, 'system', NULL, NULL, 0);
```

{% endtab %}

{% tab title="ESX SQL" %}
All installation tables are located in **`oneclub_banking/sql/esx.sql`**.\
You need to install **7 different database tables** from this file:

* oneclub\_banking\_accounts
* oneclub\_banking\_cards
* oneclub\_banking\_transaction\`
* oneclub\_banking\_credit\_profile
* oneclub\_banking\_loans
* oneclub\_banking\_loan\_installments
* bank\_bridge\_accounts
* bank\_bridge\_member

{% hint style="warning" %}
Please note that the script **requires the `addon_account & addon_account_data` table to already exist** in your database.&#x20;
{% endhint %}
{% endtab %}
{% endtabs %}
