# Changelog

> Release notes for sky_banking.

<u-changelog-versions>
<u-changelog-version badge="Current" date="2026-11-10" title="Version 1.6.1">
<template v-slot:body="">

**Highlights**

- Fixed an issue where personal banking could fail to start without a society provider even when Society Banking and Billing were both disabled.

**Other Changes**

- Clarified when a society provider is required in the included setup instructions.

**Changed Files**

- `sky_banking/INSTALL.md`
- `sky_banking/README.md`
- `sky_banking/config/locales/*`
- `sky_banking/fxmanifest.lua`
- `sky_banking/source/*` — delete and reinsert
- `sky_banking/updates.md`

<update-guide from="1.6.0" resource="sky_banking" to="1.6.1">
<template v-slot:simplified="">

### 1. Back up and stop

These steps update Banking **1.6.0 to 1.6.1**. Back up the installed `sky_banking` folder and database, including accounts, account numbers, balances and invoice history. Stop Banking during maintenance before replacing files. If upgrading from 1.2.0 or another older configuration, also follow the complete 1.6.0 configuration and data-preservation guide below; use the 1.6.1 download and this entry's provider requirements.

### 2. Replace the matching files

Inside the installed `sky_banking` folder, delete the complete `source` directory and insert the new package's complete `source` directory, including its supplied interface. Replace `fxmanifest.lua`, `INSTALL.md`, `README.md` and `updates.md`. Refresh `config/locales` from the same package; preserve your custom texts in the matching entries. This patch adds no locale keys. Keep your existing `config/config.lua`, `config/style.css` and `config/img` files; their format and image contents are unchanged.

### 3. Keep or deliberately disable company features

No configuration change is required for an existing working 1.6.0 setup. To use personal banking without a society provider, open `sky_banking/config/config.lua`. Find the existing `Config.SocietyBanking` table and set its `Enabled` value to `false`. Find the existing `Config.Billing` table and set its `Enabled` value to `false` as well. Both must be disabled; an empty `Config.SocietyJobs` table alone is not sufficient. Keep `Config.SocietyProvider = "auto"` and your actual framework/resource names.

If you use Society Banking or Billing, keep the corresponding feature enabled and start the configured society provider before Banking. The defaults remain enabled; this patch does not disable company features for you. Keep all existing job/account mappings and permissions. Banking uses its file configuration, not `/jobconfig`. Optional Jobs Base invoice settings and their existing library requirements are unchanged.

### 4. Keep existing data

No manual SQL migration, inventory item, image or streamed-model update is required for this patch. Keep the complete existing database and invoice histories. Do not reset tables or replay `import.sql` as a migration. Banking retains its existing automatic schema checks when it starts.

### 5. Restart and verify

Start your configured ESX, QBCore or Qbox framework and `oxmysql` before `sky_banking`. Start the society provider before Banking whenever Society Banking or Billing is enabled. Keep the existing Base/Jobs Base start order only if your optional Jobs Base invoice integration is used.

Restart Banking and reconnect a player. With both company features disabled, personal banking must initialize without a missing-society-provider error. At a configured bank or ATM, test a small deposit, withdrawal and transfer to another online player, then check the balances and transaction history. If company features remain enabled, also check your existing company account or invoice menu and confirm that its required provider is running.

</template>

<template v-slot:prepare="">

These steps update Banking **1.6.0 to 1.6.1**. Back up the installed `sky_banking` folder and database, including accounts, account numbers, balances and invoice history. Stop Banking during maintenance before replacing files. If upgrading from 1.2.0 or another older configuration, also follow the complete 1.6.0 configuration and data-preservation guide below; use the 1.6.1 download and this entry's provider requirements.

</template>

<template v-slot:files="">

Inside the installed `sky_banking` folder, delete the complete `source` directory and insert the new package's complete `source` directory, including its supplied interface. Replace `fxmanifest.lua`, `INSTALL.md`, `README.md` and `updates.md`. Refresh `config/locales` from the same package; preserve your custom texts in the matching entries. This patch adds no locale keys. Keep your existing `config/config.lua`, `config/style.css` and `config/img` files; their format and image contents are unchanged.

</template>

<template v-slot:config="">

No configuration change is required for an existing working 1.6.0 setup. To use personal banking without a society provider, open `sky_banking/config/config.lua`. Find the existing `Config.SocietyBanking` table and set its `Enabled` value to `false`. Find the existing `Config.Billing` table and set its `Enabled` value to `false` as well. Both must be disabled; an empty `Config.SocietyJobs` table alone is not sufficient. Keep `Config.SocietyProvider = "auto"` and your actual framework/resource names.

If you use Society Banking or Billing, keep the corresponding feature enabled and start the configured society provider before Banking. The defaults remain enabled; this patch does not disable company features for you. Keep all existing job/account mappings and permissions. Banking uses its file configuration, not `/jobconfig`. Optional Jobs Base invoice settings and their existing library requirements are unchanged.

</template>

<template v-slot:data="">

No manual SQL migration, inventory item, image or streamed-model update is required for this patch. Keep the complete existing database and invoice histories. Do not reset tables or replay `import.sql` as a migration. Banking retains its existing automatic schema checks when it starts.

</template>

<template v-slot:verify="">

Start your configured ESX, QBCore or Qbox framework and `oxmysql` before `sky_banking`. Start the society provider before Banking whenever Society Banking or Billing is enabled. Keep the existing Base/Jobs Base start order only if your optional Jobs Base invoice integration is used.

Restart Banking and reconnect a player. With both company features disabled, personal banking must initialize without a missing-society-provider error. At a configured bank or ATM, test a small deposit, withdrawal and transfer to another online player, then check the balances and transaction history. If company features remain enabled, also check your existing company account or invoice menu and confirm that its required provider is running.

</template>
</update-guide>
</template>
</u-changelog-version>
</u-changelog-versions>

<u-changelog-version badge="Previous" date="2026-11-09" title="Version 1.6.0">
<template v-slot:body="">

**Highlights**

- Added a self-contained Banking, Society Banking and Billing resource with direct ESX, QBCore and Qbox support.
- Replaced the legacy bank interface with the Jovan design, including a unified transaction page, company accounts and detailed invoice receipts.

**Notable Changes**

- Added a built-in Billing menu with nearby-player selection, multiple invoice positions, server-defined presets and optional custom charges.
- Added separate job-grade permissions for creating, cancelling and managing society invoices.
- Added persistent invoice history and society settlement through the configured account provider.
- Added optional access to received Jobs Base invoices, including remaining balances and payment through the original invoice owner.
- Improved bank transactions with server-side amount, session, proximity and permission checks.
- Added configurable window size, text scale, page descriptions, notifications and bank blips.

**Other Changes**

- Added complete French, Spanish, Italian, Portuguese, Dutch, Polish, Turkish, Russian, Czech and Swedish translations alongside German and English.
- Added startup checks that identify invalid configuration values and incomplete translations.
- Added configurable, redacted diagnostics for Banking and Billing.
- Improved interface sizing so the banking window scales with viewport height.
- Included a setup guide with the downloaded resource.

**Changed Files**

- `sky_banking/INSTALL.md`
- `sky_banking/README.md`
- `sky_banking/config/config.lua`
- `sky_banking/config/img/*`
- `sky_banking/config/locales/*`
- `sky_banking/config/style.css`
- `sky_banking/fxmanifest.lua`
- `sky_banking/import.sql`
- `sky_banking/source/*` — delete and reinsert
- `sky_banking/updates.md`

<update-guide from="1.2.0" resource="sky_banking" to="1.6.0">
<template v-slot:simplified="">

### 1. Back up and stop

This guide updates the published **Banking 1.2.0** package to **Banking 1.6.0**. Back up the installed `sky_banking` folder, the full FiveM database, existing `banking_users` history/account numbers, framework balances and society accounts before stopping the server.

The new package includes its own Banking, Society Banking and Billing services. Required dependencies are your running **ESX, QBCore or Qbox framework**, the selected **society account provider**, and **oxmysql**. Choose only the framework/provider you actually use. Sky Base and Jobs Base are required only if you separately enable the optional Jobs Base invoice integration described below.

If 1.2.0 opened an external billing resource, preserve its database and its way of collecting outstanding invoices. Those old third-party invoices are not automatically moved into the new Banking invoice table. Arrange separate commands/menus while collecting them; do not delete old invoice tables or issue replacement invoices blindly.

### 2. Install the matching files

Inside the installed `sky_banking` folder:

1. Delete the old `source` directory and insert the complete new `source` directory from the 1.6.0 download, including its supplied UI.
2. Replace `fxmanifest.lua`, `import.sql`, `README.md`, `INSTALL.md` and the supplied update guide if present in the download.
3. Replace the complete `config/img` and `config/locales` folders. Copy only your edited translation values into matching entries in the new locale files; keep all new entries and placeholders. The new language files use `Locales["<language code>"]` tables.
4. Replace `config/style.css` with this release's complete Jovan palette. Restore your chosen values for matching keys such as `--primary`, `--background` and `--sidebar-background` in that new file. Older theme files may depend on the previous interface; keep the new files together.
5. Replace `config/config.lua` with the supplied 1.6.0 file and transfer your old settings using the exact mappings in the next step. The old configuration file lacks required sections, so copying it back as a whole will prevent startup.

There are no new inventory items or streamed models to install. Keep your backed-up old files outside the running resource.

### 3. Keep settings and configure the update

**All Banking settings are edited in sky_banking/config/config.lua; /jobconfig does not manage this standalone resource.** Start from the newly supplied file, then apply these mappings from your 1.2.0 backup:

<table>
<thead>
  <tr>
    <th>
      Old setting
    </th>
    
    <th>
      Where to put the same chosen value in 1.6.0
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        Config.UseBilling
      </code>
    </td>
    
    <td>
      <code>
        Config.Billing.Enabled
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.ESXCoreResource
      </code>
    </td>
    
    <td>
      <code>
        Config.Resources.ESX
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.QBCoreResource
      </code>
    </td>
    
    <td>
      <code>
        Config.Resources.QBCore
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.UseSounds
      </code>
    </td>
    
    <td>
      Keep <code>
        Config.UseSounds
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.UseATMs
      </code>
    </td>
    
    <td>
      Keep <code>
        Config.UseATMs
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.Blips.Bank.showBlip
      </code>
      
      , <code>
        blip.name
      </code>
      
      , <code>
        blip.sprite
      </code>
      
      , <code>
        blip.color
      </code>
    </td>
    
    <td>
      Keep those values in the same entries; retain the new <code>
        display
      </code>
      
      , <code>
        scale
      </code>
      
       and <code>
        shortRange
      </code>
      
       fields
    </td>
  </tr>
  
  <tr>
    <td>
      Each <code>
        Config.Locations.Bank
      </code>
      
       entry <code>
        { x = 150.266, y = -1040.203, z = 29.374 }
      </code>
    </td>
    
    <td>
      Convert it to <code>
        vector3(150.266, -1040.203, 29.374)
      </code>
      
      , using each of your own original coordinates
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.BillingSystem
      </code>
      
       / <code>
        Config.BillingMode
      </code>
    </td>
    
    <td>
      Remove these obsolete selections; Billing now runs inside this resource
    </td>
  </tr>
</tbody>
</table>

Choose `Config.Locale` from `de`, `en`, `fr`, `es`, `it`, `pt`, `nl`, `pl`, `tr`, `ru`, `cs` or `sv`. Set `Config.Framework` to your actual `esx`, `qb` or `qbox`, or retain `auto`. Set the resource names under `Config.Resources` to your running names.

Set `Config.SocietyProvider` to `esx_addonaccount`, `qb-banking` or `renewed-banking`, or retain `auto`. Automatic selection uses ESX Addon Account for ESX, qb-banking for QBCore, and Renewed-Banking for Qbox. The selected provider must be installed and started, including when no society job is configured.

The complete new file supplies these required sections and defaults. Keep the complete structure, then apply your selected values and account/grade mapping:

```lua [config/config.lua]
Locales = {} -- edit translation in config/locales
Config = {}

Config.Locale = "de" -- "de", "en", "fr", "es", "it", "pt", "nl", "pl", "tr", "ru", "cs" or "sv"
Config.Framework = "auto" -- "auto", "esx", "qb" or "qbox"
Config.SocietyProvider = "auto" -- "auto", "esx_addonaccount", "qb-banking" or "renewed-banking"
Config.Resources = {
    ESX = "es_extended",
    ESXAddonAccount = "esx_addonaccount",
    QBCore = "qb-core",
    QBBanking = "qb-banking",
    Qbox = "qbx_core",
    RenewedBanking = "Renewed-Banking",
}

Config.CallbackTimeoutMilliseconds = 10000
Config.MaxTransactionAmount = 1000000
Config.TransactionCooldownMilliseconds = 3000
Config.BankingSessionSeconds = 120
Config.ServerBankDistance = 10.0

-- Central diagnostics for server, client and NUI. Payload logging is disabled by
-- default and sensitive identifiers are always redacted by the logger.
Config.Debug = {
    Enabled = false,
    MinimumLevel = "debug", -- "debug", "info", "warn" or "error"
    IncludePayloads = false,
    MaxPayloadLength = 1200,
    MaxDepth = 3,
    Scopes = {
        config = true,
        framework = true,
        callbacks = true,
        banking = true,
        billing = true,
        database = true,
        nui = true,
    },
}

-- Shared Jovan UI settings. The window stays compact while TextScale controls
-- readability independently from the outer window size.
Config.UI = {
    WindowScale = 0.78, -- 0.50 - 1.00
    WindowWidthVH = 145.0, -- 125.0 - 170.0
    TextScale = 1.15, -- 0.80 - 1.80
    HeaderDescriptionLines = 2, -- 1 - 3
    ToastDurationMilliseconds = 3200, -- 1000 - 10000
    ShowTransferNotification = true,
}

Config.Interaction = {
    Key = 38, -- E
    BankDistance = 2.0,
    ATMSearchRadius = 1.6,
    IdleIntervalMilliseconds = 500,
    Animation = true,
}

Config.UseSounds = true
Config.UseATMs = true

-- Billing is a separate menu, but is fully contained in this resource.
Config.Billing = {
    Enabled = true,
    -- Also show/pay received Jobs Base invoices. Requires its filtered invoice API update.
    IncludeJobsBaseInvoices = false,
    Commands = {
        Open = "bills",
        Create = "bill",
    },
    MaxAmount = 100000,
    MaxReasonLength = 160,
    MaxOpenBillsPerPlayer = 25,
    MaxDistance = 5.0,
    CreateCooldownSeconds = 3,
    PaymentCooldownSeconds = 2,
    HistoryLimit = 20,
    AllowIssuerCancellation = true,
    AllowCustomItems = true,
    MaxLineItems = 12,
    -- Each configured society job can have independent grade permissions. Players can
    -- always view and pay invoices addressed to themselves. These permissions only
    -- control issuing and managing society invoices.
    Permissions = {
        -- police = { Create = 0, Cancel = 0, Manage = 4 },
    },
    -- Presets are server-authoritative. The client only sends the preset ID; label and
    -- price are resolved here so manipulated NUI requests cannot change the amount.
    ReasonPresets = {
        Default = {
            -- { Id = "service_fee", Label = "Service fee", Amount = 250 },
        },
        -- police = {
        --     { Id = "speeding", Label = "Speeding", Amount = 450 },
        -- },
    },
    MinimumGrades = {
        -- Backwards-compatible Create/Cancel grade when no Permissions entry exists.
        -- police = 2,
    },
}

Config.SocietyBanking = {
    Enabled = true,
    AllowAtATMs = false,
    CooldownSeconds = 3,
    -- Configured jobs may use Society Banking from grade 0 unless overridden here.
    MinimumGrades = {
        -- police = 4,
    },
}

-- Only jobs listed here can use Society Banking and create invoices.
-- The right side is the shared account name as stored by the provider. ESX uses the
-- full society_* name; QBCore and Qbox providers normalize that prefix internally.
Config.SocietyJobs = {
    -- job_name = "society_job_name",
    -- police = "society_police",
    -- ambulance = "society_ambulance",
}

Config.Blips = {
    Bank = {
        showBlip = true,
        blip = {
            name = "Bank",
            sprite = 108,
            color = 2,
            display = 4,
            scale = 0.75,
            shortRange = true,
        },
    },
}

Config.Locations = {
    Bank = {
        vector3(150.266, -1040.203, 29.374),
        vector3(-1212.98, -330.841, 37.787),
        vector3(-2962.582, 482.627, 15.703),
        vector3(-112.202, 6469.295, 31.626),
        vector3(314.187, -278.621, 54.17),
        vector3(-351.534, -49.529, 49.042),
        vector3(241.727, 220.706, 106.286),
        vector3(1175.064, 2706.643, 38.094),
    },
}
```

**Configure your actual society access.** The shipped `Config.SocietyJobs` is empty, so it grants no company access. In that table, add only jobs that should use Society Banking or issue invoices, mapping each actual framework job name to its existing provider account. For an existing `police` job/account, this example belongs in the corresponding blocks already present in the new file:

```lua
Config.SocietyJobs = {
    police = "society_police",
}

Config.SocietyBanking.MinimumGrades = {
    police = 4,
}

Config.Billing.Permissions = {
    police = { Create = 0, Cancel = 0, Manage = 4 },
}
```

Replace `police`, the account name and every grade number with your real job/account and intended access levels. Add other jobs as separate entries. ESX uses the full `society_*` account name; the QBCore/Qbox providers remove that prefix internally. Accounts must already exist in the selected provider. `Create` allows issuing, `Cancel` allows cancelling the issuer's own invoices, and `Manage` allows society-wide invoice management. Without explicit Create/Cancel grades, `Config.Billing.MinimumGrades` is the fallback and otherwise grade 0 is used; Manage is not granted by default. Set withdrawal grades explicitly in `Config.SocietyBanking.MinimumGrades` for each mapped job.

Keep `Config.Billing.IncludeJobsBaseInvoices = false` unless you want the optional integration. Configure presets in the existing `Config.Billing.ReasonPresets.Default` table or a job-named table, using the existing shape below; preserve `Default` and any other entries you use:

```lua
{ Id = "service_fee", Label = "Service fee", Amount = 250 },
```

Preset IDs must be unique within their list. Set `Config.Billing.AllowCustomItems` to `false` if employees should use only configured presets. If another billing resource still handles old invoices, give either its command or `Config.Billing.Commands.Open` / `.Create` a different name so `/bills` and `/bill` do not conflict.

**Optional: show Jobs Base invoices.** Install **Sky Base 1.52.0** and **Sky Jobs Base 1.55.0**, keep Jobs Base Billing enabled, and start them before players use Banking. Change the existing `Config.Billing.IncludeJobsBaseInvoices` to `true` and restart Banking. `/bills` then includes received Jobs Base invoices alongside Banking's own records. Jobs Base remains responsible for ownership, settlement, restrictions and employee shares; no invoices or balances are copied. Banking pays eligible monetary invoices from the personal bank account. Item currencies and expired invoices remain visible without a Banking payment button; issue/cancel Jobs Base invoices and handle supported item payments through Jobs Base. An older/stopped Jobs Base reports the service as unavailable. Keep false for the standalone-only setup.

### 4. Database, items and assets

The updated resource automatically creates its own required tables and upgrades the existing Banking data when it starts. Keep the existing `banking_users` rows: their account numbers, recent history and statistics remain. Personal and company balances stay with the same framework/provider accounts selected in configuration.

The startup update adds the unique bank-number index `uniq_banking_bank_number`. If old rows contain duplicate bank numbers, startup stops and names the duplicate rather than deleting accounts. Keep Banking stopped and resolve that specific conflict from your backup with support before allowing transactions.

When built-in Billing is enabled, startup creates `sky_billing_invoices`; existing installations of this built-in ledger receive the `line_items` column and `idx_sky_billing_society_status` index if missing. The SQL user needs CREATE/ALTER and read/write permissions. The included `import.sql` is the current schema for manual preparation; no manual SQL import or database reset is needed for the normal 1.2.0 update.

Invoices from `esx_billing`, `okokbilling`, `loaf_billing`, `g_billing` or another previous external billing system are not imported. Keep their original tables and collection workflow until those debts are handled. Do not copy an invoice into both ledgers or delete the old tables as an update step. The optional Jobs Base integration reads its existing invoices through Jobs Base and also performs no data copy.

No inventory-item or streamed-asset migration is required.

### 5. Start and check the result

In `server.cfg`, start your chosen framework and society provider first, followed by `oxmysql` and `sky_banking`. For example, on an existing ESX setup:

```cfg [server.cfg]
ensure es_extended
ensure esx_addonaccount
ensure oxmysql
ensure sky_banking
```

For QBCore, use your actual `qb-core` and `qb-banking` names. For Qbox, use `qbx_core` and the configured `Renewed-Banking` resource. Keep the selected provider's own dependencies/start order as required by that provider. If you enabled the optional Jobs Base invoice switch, start its configured providers, then `sky_base` and `sky_jobs_base` before Banking as well.

Restart the server, reconnect clients and wait for Banking's database/service readiness messages. A `CONFIG ERROR` names a value to correct in the new configuration. An empty society-job mapping gives a setup warning and no company access.

Visit one of your configured bank locations, press the configured interaction key (default **E**), and check that the expected account number and balances remain. Use small amounts to check deposit, withdrawal and a transfer to another online player's six-digit Banking account. Check both balances and recent history before repeating an unconfirmed transaction.

As a deliberately authorized employee, open the configured Billing menu (default `/bills`), select a nearby second player, create an invoice, inspect its receipt, pay it as the recipient, and verify both the personal-bank deduction and the intended society deposit. Confirm that a lower grade cannot use permissions you restricted. Verify a company cash withdrawal only for the intended grade, and confirm that ATM society access follows `Config.SocietyBanking.AllowAtATMs`.

If you enabled Jobs Base invoices, check an existing received invoice and its remaining balance; after payment it should refresh without a duplicate society credit. Preserve access to old external invoices through their original collection workflow.

</template>

<template v-slot:prepare="">

This guide updates the published **Banking 1.2.0** package to **Banking 1.6.0**. Back up the installed `sky_banking` folder, the full FiveM database, existing `banking_users` history/account numbers, framework balances and society accounts before stopping the server.

The new package includes its own Banking, Society Banking and Billing services. Required dependencies are your running **ESX, QBCore or Qbox framework**, the selected **society account provider**, and **oxmysql**. Choose only the framework/provider you actually use. Sky Base and Jobs Base are required only if you separately enable the optional Jobs Base invoice integration described below.

If 1.2.0 opened an external billing resource, preserve its database and its way of collecting outstanding invoices. Those old third-party invoices are not automatically moved into the new Banking invoice table. Arrange separate commands/menus while collecting them; do not delete old invoice tables or issue replacement invoices blindly.

</template>

<template v-slot:files="">

Inside the installed `sky_banking` folder:

1. Delete the old `source` directory and insert the complete new `source` directory from the 1.6.0 download, including its supplied UI.
2. Replace `fxmanifest.lua`, `import.sql`, `README.md`, `INSTALL.md` and the supplied update guide if present in the download.
3. Replace the complete `config/img` and `config/locales` folders. Copy only your edited translation values into matching entries in the new locale files; keep all new entries and placeholders. The new language files use `Locales["<language code>"]` tables.
4. Replace `config/style.css` with this release's complete Jovan palette. Restore your chosen values for matching keys such as `--primary`, `--background` and `--sidebar-background` in that new file. Older theme files may depend on the previous interface; keep the new files together.
5. Replace `config/config.lua` with the supplied 1.6.0 file and transfer your old settings using the exact mappings in the next step. The old configuration file lacks required sections, so copying it back as a whole will prevent startup.

There are no new inventory items or streamed models to install. Keep your backed-up old files outside the running resource.

</template>

<template v-slot:config="">

**All Banking settings are edited in sky_banking/config/config.lua; /jobconfig does not manage this standalone resource.** Start from the newly supplied file, then apply these mappings from your 1.2.0 backup:

<table>
<thead>
  <tr>
    <th>
      Old setting
    </th>
    
    <th>
      Where to put the same chosen value in 1.6.0
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        Config.UseBilling
      </code>
    </td>
    
    <td>
      <code>
        Config.Billing.Enabled
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.ESXCoreResource
      </code>
    </td>
    
    <td>
      <code>
        Config.Resources.ESX
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.QBCoreResource
      </code>
    </td>
    
    <td>
      <code>
        Config.Resources.QBCore
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.UseSounds
      </code>
    </td>
    
    <td>
      Keep <code>
        Config.UseSounds
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.UseATMs
      </code>
    </td>
    
    <td>
      Keep <code>
        Config.UseATMs
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.Blips.Bank.showBlip
      </code>
      
      , <code>
        blip.name
      </code>
      
      , <code>
        blip.sprite
      </code>
      
      , <code>
        blip.color
      </code>
    </td>
    
    <td>
      Keep those values in the same entries; retain the new <code>
        display
      </code>
      
      , <code>
        scale
      </code>
      
       and <code>
        shortRange
      </code>
      
       fields
    </td>
  </tr>
  
  <tr>
    <td>
      Each <code>
        Config.Locations.Bank
      </code>
      
       entry <code>
        { x = 150.266, y = -1040.203, z = 29.374 }
      </code>
    </td>
    
    <td>
      Convert it to <code>
        vector3(150.266, -1040.203, 29.374)
      </code>
      
      , using each of your own original coordinates
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Config.BillingSystem
      </code>
      
       / <code>
        Config.BillingMode
      </code>
    </td>
    
    <td>
      Remove these obsolete selections; Billing now runs inside this resource
    </td>
  </tr>
</tbody>
</table>

Choose `Config.Locale` from `de`, `en`, `fr`, `es`, `it`, `pt`, `nl`, `pl`, `tr`, `ru`, `cs` or `sv`. Set `Config.Framework` to your actual `esx`, `qb` or `qbox`, or retain `auto`. Set the resource names under `Config.Resources` to your running names.

Set `Config.SocietyProvider` to `esx_addonaccount`, `qb-banking` or `renewed-banking`, or retain `auto`. Automatic selection uses ESX Addon Account for ESX, qb-banking for QBCore, and Renewed-Banking for Qbox. The selected provider must be installed and started, including when no society job is configured.

The complete new file supplies these required sections and defaults. Keep the complete structure, then apply your selected values and account/grade mapping:

```lua [config/config.lua]
Locales = {} -- edit translation in config/locales
Config = {}

Config.Locale = "de" -- "de", "en", "fr", "es", "it", "pt", "nl", "pl", "tr", "ru", "cs" or "sv"
Config.Framework = "auto" -- "auto", "esx", "qb" or "qbox"
Config.SocietyProvider = "auto" -- "auto", "esx_addonaccount", "qb-banking" or "renewed-banking"
Config.Resources = {
    ESX = "es_extended",
    ESXAddonAccount = "esx_addonaccount",
    QBCore = "qb-core",
    QBBanking = "qb-banking",
    Qbox = "qbx_core",
    RenewedBanking = "Renewed-Banking",
}

Config.CallbackTimeoutMilliseconds = 10000
Config.MaxTransactionAmount = 1000000
Config.TransactionCooldownMilliseconds = 3000
Config.BankingSessionSeconds = 120
Config.ServerBankDistance = 10.0

-- Central diagnostics for server, client and NUI. Payload logging is disabled by
-- default and sensitive identifiers are always redacted by the logger.
Config.Debug = {
    Enabled = false,
    MinimumLevel = "debug", -- "debug", "info", "warn" or "error"
    IncludePayloads = false,
    MaxPayloadLength = 1200,
    MaxDepth = 3,
    Scopes = {
        config = true,
        framework = true,
        callbacks = true,
        banking = true,
        billing = true,
        database = true,
        nui = true,
    },
}

-- Shared Jovan UI settings. The window stays compact while TextScale controls
-- readability independently from the outer window size.
Config.UI = {
    WindowScale = 0.78, -- 0.50 - 1.00
    WindowWidthVH = 145.0, -- 125.0 - 170.0
    TextScale = 1.15, -- 0.80 - 1.80
    HeaderDescriptionLines = 2, -- 1 - 3
    ToastDurationMilliseconds = 3200, -- 1000 - 10000
    ShowTransferNotification = true,
}

Config.Interaction = {
    Key = 38, -- E
    BankDistance = 2.0,
    ATMSearchRadius = 1.6,
    IdleIntervalMilliseconds = 500,
    Animation = true,
}

Config.UseSounds = true
Config.UseATMs = true

-- Billing is a separate menu, but is fully contained in this resource.
Config.Billing = {
    Enabled = true,
    -- Also show/pay received Jobs Base invoices. Requires its filtered invoice API update.
    IncludeJobsBaseInvoices = false,
    Commands = {
        Open = "bills",
        Create = "bill",
    },
    MaxAmount = 100000,
    MaxReasonLength = 160,
    MaxOpenBillsPerPlayer = 25,
    MaxDistance = 5.0,
    CreateCooldownSeconds = 3,
    PaymentCooldownSeconds = 2,
    HistoryLimit = 20,
    AllowIssuerCancellation = true,
    AllowCustomItems = true,
    MaxLineItems = 12,
    -- Each configured society job can have independent grade permissions. Players can
    -- always view and pay invoices addressed to themselves. These permissions only
    -- control issuing and managing society invoices.
    Permissions = {
        -- police = { Create = 0, Cancel = 0, Manage = 4 },
    },
    -- Presets are server-authoritative. The client only sends the preset ID; label and
    -- price are resolved here so manipulated NUI requests cannot change the amount.
    ReasonPresets = {
        Default = {
            -- { Id = "service_fee", Label = "Service fee", Amount = 250 },
        },
        -- police = {
        --     { Id = "speeding", Label = "Speeding", Amount = 450 },
        -- },
    },
    MinimumGrades = {
        -- Backwards-compatible Create/Cancel grade when no Permissions entry exists.
        -- police = 2,
    },
}

Config.SocietyBanking = {
    Enabled = true,
    AllowAtATMs = false,
    CooldownSeconds = 3,
    -- Configured jobs may use Society Banking from grade 0 unless overridden here.
    MinimumGrades = {
        -- police = 4,
    },
}

-- Only jobs listed here can use Society Banking and create invoices.
-- The right side is the shared account name as stored by the provider. ESX uses the
-- full society_* name; QBCore and Qbox providers normalize that prefix internally.
Config.SocietyJobs = {
    -- job_name = "society_job_name",
    -- police = "society_police",
    -- ambulance = "society_ambulance",
}

Config.Blips = {
    Bank = {
        showBlip = true,
        blip = {
            name = "Bank",
            sprite = 108,
            color = 2,
            display = 4,
            scale = 0.75,
            shortRange = true,
        },
    },
}

Config.Locations = {
    Bank = {
        vector3(150.266, -1040.203, 29.374),
        vector3(-1212.98, -330.841, 37.787),
        vector3(-2962.582, 482.627, 15.703),
        vector3(-112.202, 6469.295, 31.626),
        vector3(314.187, -278.621, 54.17),
        vector3(-351.534, -49.529, 49.042),
        vector3(241.727, 220.706, 106.286),
        vector3(1175.064, 2706.643, 38.094),
    },
}
```

**Configure your actual society access.** The shipped `Config.SocietyJobs` is empty, so it grants no company access. In that table, add only jobs that should use Society Banking or issue invoices, mapping each actual framework job name to its existing provider account. For an existing `police` job/account, this example belongs in the corresponding blocks already present in the new file:

```lua
Config.SocietyJobs = {
    police = "society_police",
}

Config.SocietyBanking.MinimumGrades = {
    police = 4,
}

Config.Billing.Permissions = {
    police = { Create = 0, Cancel = 0, Manage = 4 },
}
```

Replace `police`, the account name and every grade number with your real job/account and intended access levels. Add other jobs as separate entries. ESX uses the full `society_*` account name; the QBCore/Qbox providers remove that prefix internally. Accounts must already exist in the selected provider. `Create` allows issuing, `Cancel` allows cancelling the issuer's own invoices, and `Manage` allows society-wide invoice management. Without explicit Create/Cancel grades, `Config.Billing.MinimumGrades` is the fallback and otherwise grade 0 is used; Manage is not granted by default. Set withdrawal grades explicitly in `Config.SocietyBanking.MinimumGrades` for each mapped job.

Keep `Config.Billing.IncludeJobsBaseInvoices = false` unless you want the optional integration. Configure presets in the existing `Config.Billing.ReasonPresets.Default` table or a job-named table, using the existing shape below; preserve `Default` and any other entries you use:

```lua
{ Id = "service_fee", Label = "Service fee", Amount = 250 },
```

Preset IDs must be unique within their list. Set `Config.Billing.AllowCustomItems` to `false` if employees should use only configured presets. If another billing resource still handles old invoices, give either its command or `Config.Billing.Commands.Open` / `.Create` a different name so `/bills` and `/bill` do not conflict.

**Optional: show Jobs Base invoices.** Install **Sky Base 1.52.0** and **Sky Jobs Base 1.55.0**, keep Jobs Base Billing enabled, and start them before players use Banking. Change the existing `Config.Billing.IncludeJobsBaseInvoices` to `true` and restart Banking. `/bills` then includes received Jobs Base invoices alongside Banking's own records. Jobs Base remains responsible for ownership, settlement, restrictions and employee shares; no invoices or balances are copied. Banking pays eligible monetary invoices from the personal bank account. Item currencies and expired invoices remain visible without a Banking payment button; issue/cancel Jobs Base invoices and handle supported item payments through Jobs Base. An older/stopped Jobs Base reports the service as unavailable. Keep false for the standalone-only setup.

</template>

<template v-slot:data="">

The updated resource automatically creates its own required tables and upgrades the existing Banking data when it starts. Keep the existing `banking_users` rows: their account numbers, recent history and statistics remain. Personal and company balances stay with the same framework/provider accounts selected in configuration.

The startup update adds the unique bank-number index `uniq_banking_bank_number`. If old rows contain duplicate bank numbers, startup stops and names the duplicate rather than deleting accounts. Keep Banking stopped and resolve that specific conflict from your backup with support before allowing transactions.

When built-in Billing is enabled, startup creates `sky_billing_invoices`; existing installations of this built-in ledger receive the `line_items` column and `idx_sky_billing_society_status` index if missing. The SQL user needs CREATE/ALTER and read/write permissions. The included `import.sql` is the current schema for manual preparation; no manual SQL import or database reset is needed for the normal 1.2.0 update.

Invoices from `esx_billing`, `okokbilling`, `loaf_billing`, `g_billing` or another previous external billing system are not imported. Keep their original tables and collection workflow until those debts are handled. Do not copy an invoice into both ledgers or delete the old tables as an update step. The optional Jobs Base integration reads its existing invoices through Jobs Base and also performs no data copy.

No inventory-item or streamed-asset migration is required.

</template>

<template v-slot:verify="">

In `server.cfg`, start your chosen framework and society provider first, followed by `oxmysql` and `sky_banking`. For example, on an existing ESX setup:

```cfg [server.cfg]
ensure es_extended
ensure esx_addonaccount
ensure oxmysql
ensure sky_banking
```

For QBCore, use your actual `qb-core` and `qb-banking` names. For Qbox, use `qbx_core` and the configured `Renewed-Banking` resource. Keep the selected provider's own dependencies/start order as required by that provider. If you enabled the optional Jobs Base invoice switch, start its configured providers, then `sky_base` and `sky_jobs_base` before Banking as well.

Restart the server, reconnect clients and wait for Banking's database/service readiness messages. A `CONFIG ERROR` names a value to correct in the new configuration. An empty society-job mapping gives a setup warning and no company access.

Visit one of your configured bank locations, press the configured interaction key (default **E**), and check that the expected account number and balances remain. Use small amounts to check deposit, withdrawal and a transfer to another online player's six-digit Banking account. Check both balances and recent history before repeating an unconfirmed transaction.

As a deliberately authorized employee, open the configured Billing menu (default `/bills`), select a nearby second player, create an invoice, inspect its receipt, pay it as the recipient, and verify both the personal-bank deduction and the intended society deposit. Confirm that a lower grade cannot use permissions you restricted. Verify a company cash withdrawal only for the intended grade, and confirm that ATM society access follows `Config.SocietyBanking.AllowAtATMs`.

If you enabled Jobs Base invoices, check an existing received invoice and its remaining balance; after payment it should refresh without a duplicate society credit. Preserve access to old external invoices through their original collection workflow.

</template>
</update-guide>
</template>
</u-changelog-version>

::
