Installation
Requirements
Section titled โRequirementsโ| Dependency | Required | Purpose |
|---|---|---|
| oxmysql | Yes | Database access for all three resources |
| QBCore, Qbox, or ESX | Yes | Player, job, money, and callback framework |
| ox_target or qb-target | Optional | Bank and ATM interaction when target mode is enabled |
| Supported inventory | Optional | Required only for receipts, checks, and the billing tablet item |
| LB Phone | Optional | Required only for rs_mobile_bank |
1. Extract the Package
Section titled โ1. Extract the PackageโPlace all included resources inside your serverโs resources directory without changing their folder names:
Directoryresources/[retro]/
Directoryrs_bank/
- โฆ
Directoryrs_billing/
- โฆ
Directoryrs_mobile_bank/ Optional LB Phone application
- โฆ
Keeping the original resource names is recommended because the resources communicate through exports and NUI URLs that reference these names.
2. Import the Database
Section titled โ2. Import the DatabaseโThe base banking and billing schemas must be imported before the first start.
Select the correct bank SQL file
Section titled โSelect the correct bank SQL fileโ| Framework | Import this file |
|---|---|
| QBCore | rs_bank/sql files/rs_bank.sql |
| Qbox | rs_bank/sql files/rs_bank_qbox.sql |
| ESX | rs_bank/sql files/rs_bank_esx.sql |
Then import the billing schema for every framework:
rs_billing/sql/rs_billing.sqlThe following files normally do not need to be imported manually:
rs_bank/sql files/check_tables.sql- check tables are created automatically when the check system starts.rs_mobile_bank/requests.sql- the money-request table is created automatically byrs_mobile_bank.
3. Select Your Framework
Section titled โ3. Select Your FrameworkโSet the same framework in both core resources.
rs_bank/shared/config.lua
Config.Core = 'qb-core' -- 'qb-core', 'qbox', or 'esx'rs_billing/shared/config.lua
Config.Core = 'qb-core' -- 'qb-core', 'qbox', or 'esx'rs_mobile_bank detects QBCore, Qbox, or ESX automatically and does not require a separate framework setting.
4. Enable the Bank and Billing Connection
Section titled โ4. Enable the Bank and Billing ConnectionโThe package is designed to run as one connected system. Keep these values enabled:
rs_bank/shared/config.lua
Config.BillingScript = 'rs_billing'rs_billing/shared/config.lua
Config.Payment = { Source = 'bank', BankResource = 'rs_bank', LBPhoneBridge = true,}LBPhoneBridge is only relevant to the included LB Phone application. The main bank and billing connection uses BankResource.
5. Configure Interactions
Section titled โ5. Configure InteractionsโChoose one interaction method in rs_bank/shared/config.lua.
Target mode
Section titled โTarget modeโConfig.TargetSystem = 'ox_target' -- or 'qb-target'Config.UseDrawText = falseBuilt-in DrawText mode
Section titled โBuilt-in DrawText modeโConfig.TargetSystem = 'none'Config.UseDrawText = trueConfig.OpenKey = 38 -- E6. Add the Resources to server.cfg
Section titled โ6. Add the Resources to server.cfgโCore installation
Section titled โCore installationโensure oxmysql
# Start your framework before the bundle# ensure qb-core # QBCore# ensure qbx_core # Qbox resource name may vary by build# ensure es_extended # ESX
# Start your selected target/inventory resources before the bundle when usedensure rs_bankensure rs_billingOptional LB Phone application
Section titled โOptional LB Phone applicationโensure lb-phoneensure rs_mobile_bankThe recommended complete order is:
ensure oxmysqlensure your_frameworkensure your_inventoryensure your_targetensure rs_bankensure rs_billingensure lb-phone # Optionalensure rs_mobile_bank # Optional7. Register Optional Items
Section titled โ7. Register Optional ItemsโOnly register the features you plan to use. Item names must exactly match the config values.
| Default item | Resource | Used for |
|---|---|---|
atm_receipt | rs_bank | Metadata-based ATM receipts |
checkbook | rs_bank | Purchased checkbooks |
check | rs_bank | Signed checks |
billing_tablet | rs_billing | Opening billing when item mode is enabled |
Copy the included images to your inventoryโs image folder:
rs_bank/img/atm_receipt.pngrs_bank/img/check_book.pngrs_bank/img/check.pngrs_billing/img/billing_tablet.pngox_inventory example
Section titled โox_inventory exampleโ['atm_receipt'] = { label = 'ATM Receipt', weight = 0, stack = false, close = true,},
['checkbook'] = { label = 'Checkbook', weight = 500, stack = false, close = true,},
['check'] = { label = 'Bank Check', weight = 0, stack = false, close = true,},
['billing_tablet'] = { label = 'Billing Tablet', weight = 500, stack = false, close = true,},QBCore item example
Section titled โQBCore item exampleโatm_receipt = { name = 'atm_receipt', label = 'ATM Receipt', weight = 0, type = 'item', image = 'atm_receipt.png', unique = true, useable = true, shouldClose = true, description = 'An ATM transaction receipt.'},
checkbook = { name = 'checkbook', label = 'Checkbook', weight = 500, type = 'item', image = 'check_book.png', unique = true, useable = true, shouldClose = true, description = 'A book of blank bank checks.'},
check = { name = 'check', label = 'Bank Check', weight = 0, type = 'item', image = 'check.png', unique = true, useable = true, shouldClose = true, description = 'A signed bank check.'},
billing_tablet = { name = 'billing_tablet', label = 'Billing Tablet', weight = 500, type = 'item', image = 'billing_tablet.png', unique = true, useable = true, shouldClose = true, description = 'A tablet used to manage invoices.'},8. Configure Phone Notifications
Section titled โ8. Configure Phone NotificationsโThe core resources can send notifications through several phone systems:
Config.Phone = 'lb-phone'-- Other supported values:-- 'qb-phone', 'qs-smartphone', 'gksphone', 'npwd'Set the phone value separately in:
rs_bank/shared/config.luars_billing/shared/config.lua
When no phone notification integration is wanted, disable the relevant notification options or customize the editable shared/phonemail.lua files.
9. First-Start Checklist
Section titled โ9. First-Start ChecklistโAfter restarting, verify the following:
- No missing-table errors appear in the server console.
- A configured bank or GTA ATM can be opened.
- The Billing tab appears inside the bank UI.
/billingopens the billing interface when command mode is enabled.- Invoice payments appear in bank transaction history.
- When installed, the Retro Bank app appears on LB Phone.