> 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/devmosaic-banking/exports-and-bridges.md).

# Exports And Bridges

### Native dm-banking Exports

#### getAccountMoney

```lua
local balance = exports['dm-banking']:getAccountMoney('job:police')
```

Returns balance or `false`.

#### addAccountMoney

```lua
exports['dm-banking']:addAccountMoney('job:police', 5000)
```

#### removeAccountMoney

```lua
exports['dm-banking']:removeAccountMoney('job:police', 2500)
```

#### handleTransaction

```lua
exports['dm-banking']:handleTransaction(
    'personal:ABC12345',
    'Paycheck',
    1000,
    'Salary payment',
    'City Hall',
    'Player',
    'deposit'
)
```

#### createSharedAccount

```lua
local accountId = exports['dm-banking']:createSharedAccount('ABC12345', 'business_account')
```

#### getAccount

```lua
local account = exports['dm-banking']:getAccount('shared:business_account')
```

### Loan Exports

```lua
local score = exports['dm-banking']:getCreditScore('ABC12345')
exports['dm-banking']:adjustCreditScore('ABC12345', 25, 'reward')
local loans = exports['dm-banking']:listLoans('ABC12345')
local loan, err = exports['dm-banking']:giveLoan('ABC12345', 'personal_short', 5000, {})
exports['dm-banking']:forcePayoff(loanId)
```

### Compatibility Bridge

Compatibility is implemented in:

```
server/bridge.lua
```

The compatibility bridge exists so server owners can replace their old banking resource with `dm-banking` without rewriting every script that already uses old banking exports or events.

Many FiveM scripts call banking resources directly. For example, a boss menu might use `qb-management` exports, a police script might add society funds through `qb-banking`, or an ESX job script might use `esx_society`. Without a bridge, every one of those scripts would need manual editing.

With the bridge enabled, `dm-banking` registers handlers under the old resource/export names and converts those calls into `dm-banking` account actions.

Supported bridge targets:

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

Important: the bridge is for compatibility. New scripts should use the native `dm-banking` exports when possible.

#### Renewed-Banking

Resource names:

* `Renewed-Banking`
* `renewed-banking`

Exports:

* `handleTransaction`
* `getAccountMoney`
* `addAccountMoney`
* `removeAccountMoney`
* `changeAccountName`
* `GetJobAccount`
* `CreateJobAccount`
* `addAccountMember`
* `removeAccountMember`
* `getAccountTransactions`

Events:

* `Renewed-Banking:server:createNewAccount`
* `Renewed-Banking:server:addAccountMember`
* `Renewed-Banking:server:removeAccountMember`
* `Renewed-Banking:server:changeAccountName`

#### qb-banking

Exports:

* `CreatePlayerAccount`
* `CreateJobAccount`
* `CreateGangAccount`
* `CreateBankStatement`
* `AddMoney`
* `AddGangMoney`
* `RemoveMoney`
* `RemoveGangMoney`
* `GetAccount`
* `GetGangAccount`
* `GetAccountBalance`

#### qb-management / qb-bossmenu

Exports:

* `GetAccount`
* `GetGangAccount`
* `AddMoney`
* `AddGangMoney`
* `RemoveMoney`
* `RemoveGangMoney`

#### ESX

Exports/events:

* `esx_banking:logTransaction`
* `esx_society:GetSociety`
* `esx_society:getSociety`
* `esx_society:depositMoney`
* `esx_society:withdrawMoney`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devmosaic.gitbook.io/devmosaic/devmosaic-banking/exports-and-bridges.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
