# Bridge

X8\_cardealership automatically detects your framework on startup — no manual configuration needed.

***

### Auto Detection

The resource checks for running frameworks in this order:

```
qbx_core            →  QBX
qb-core             →  QBCore
es_extended         →  ESX
```

***

### Supported Frameworks

| Framework | Detection     | Status |
| --------- | ------------- | ------ |
| QBX Core  | `qbx_core`    | ✅      |
| QBCore    | `qb-core`     | ✅      |
| ESX       | `es_extended` | ✅      |

***

### Key Systems

Set in `shared/config.lua`:

```lua
Config.KeySystem = 'qbx_vehiclekeys'
```

| Value                 | Resource             |
| --------------------- | -------------------- |
| `qbx_vehiclekeys`     | QBX Vehicle Keys     |
| `qb-vehiclekeys`      | QBCore Vehicle Keys  |
| `Renewed-Vehiclekeys` | Renewed Vehicle Keys |
| `qs-vehiclekeys`      | Quasar Vehicle Keys  |
| `none`                | No key system        |

***

### Renewed-Banking

Used for the dealer finance system (withdraw / deposit).

```lua
-- Reads balance
exports['Renewed-Banking']:getAccountMoney(society)

-- Adds money to society account
exports['Renewed-Banking']:addAccountMoney(society, amount)

-- Removes money from society account
exports['Renewed-Banking']:removeAccountMoney(society, amount)

-- Logs transaction in banking history
exports['Renewed-Banking']:handleTransaction(
    society, title, amount, message, issuer, receiver, type
)
```

Configure the society name in `Config.BossMenu.Societies`.


---

# Agent Instructions: 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://x8project.gitbook.io/x8project/projects/cardealership/bridge.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.
