> For the complete documentation index, see [llms.txt](https://devmosaic.gitbook.io/devmosaic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devmosaic.gitbook.io/devmosaic/resources/devmosaic-banking.md).

# Banking

\`dm-banking\` is an advanced Banking resource for FiveM servers. It supports QBCore, Qbox, and ESX-style frameworks through automatic bridges.

### Core Features

* Personal accounts
* Job accounts
* Gang accounts
* Shared accounts with ACL roles
* Deposits, withdrawals, transfers, and fees
* Transaction history and statistics
* Bank card issuing, freezing, deletion, card limits, and PIN checks
* Physical card item support through inventory metadata
* ATM card selector and PIN verification
* Option to open the account linked to a physical card
* Loan products, credit score, auto approval, banker approval, repayment, and defaults
* UI theme system through `data/ui.lua`
* JSON localization through `locales/*.json`
* Compatibility bridge for common banking resources

### Why The Compatibility Bridge Exists

Many servers already have scripts that call exports or events from older banking resources. The bridge lets those scripts keep working after switching to `dm-banking`.

This means you usually do not need to edit every old script that was written for another banking resource. If a supported script calls an old banking export, `dm-banking` catches that export call and routes it into the new banking system.

The bridge currently covers common calls from:

* `qb-banking`
* `Renewed-Banking`
* `renewed-banking`
* `qb-management`
* `qb-bossmenu`
* `esx_banking`
* `esx_society`

Example: if another script still calls `exports['qb-banking']:AddMoney(...)`, the compatibility bridge handles that call and updates the matching `dm-banking` account.

### Resource Structure

```
dm-banking/
  client/
  data/
  docs/
  locales/
  server/
  shared/
  sql/
  web/
```

### Required Dependencies

* `oxmysql`
* `ox_lib`
* One supported framework:
  * `qb-core`
  * `qbx_core`
  * `es_extended`

### Optional Dependencies

Targets:

* `ox_target`
* `qb-target`
* `qtarget`

Inventories:

* `ox_inventory`
* `qb-inventory`
* `qs-inventory`
* `qs-inventory-pro`
* `codem-inventory`
* `origen_inventory`

### In This Section

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><i class="fa-download">:download:</i></td><td><strong>Installation</strong></td><td>Drop it in, import the SQL, start the resource.</td><td><a href="/devmosaic/resources/devmosaic-banking/installation.md">Installation</a></td></tr><tr><td><i class="fa-arrow-right-arrow-left">:arrow-right-arrow-left:</i></td><td><strong>Migration</strong></td><td>Move accounts and transactions from your old banking resource.</td><td><a href="/devmosaic/resources/devmosaic-banking/migration.md">Migration</a></td></tr><tr><td><i class="fa-gear">:gear:</i></td><td><strong>Configuration</strong></td><td>Every option you can change.</td><td><a href="/devmosaic/resources/devmosaic-banking/configuration.md">Configuration</a></td></tr><tr><td><i class="fa-palette">:palette:</i></td><td><strong>Themes And Locales</strong></td><td>Colours, branding and languages.</td><td><a href="/devmosaic/resources/devmosaic-banking/themes-and-locales.md">Themes And Locales</a></td></tr><tr><td><i class="fa-user">:user:</i></td><td><strong>Accounts</strong></td><td>Personal, shared and business accounts.</td><td><a href="/devmosaic/resources/devmosaic-banking/accounts.md">Accounts</a></td></tr><tr><td><i class="fa-credit-card">:credit-card:</i></td><td><strong>Cards And ATM</strong></td><td>Physical cards, PINs and ATM behaviour.</td><td><a href="/devmosaic/resources/devmosaic-banking/cards-and-atm.md">Cards And ATM</a></td></tr><tr><td><i class="fa-hand-holding-dollar">:hand-holding-dollar:</i></td><td><strong>Loans</strong></td><td>Lending, interest and repayment.</td><td><a href="/devmosaic/resources/devmosaic-banking/loans.md">Loans</a></td></tr><tr><td><i class="fa-code">:code:</i></td><td><strong>Exports And Bridges</strong></td><td>Call it from your own scripts.</td><td><a href="/devmosaic/resources/devmosaic-banking/exports-and-bridges.md">Exports And Bridges</a></td></tr><tr><td><i class="fa-wrench">:wrench:</i></td><td><strong>Troubleshooting</strong></td><td>Fixes for the problems people actually hit.</td><td><a href="/devmosaic/resources/devmosaic-banking/troubleshooting.md">Troubleshooting</a></td></tr></tbody></table>
