> For the complete documentation index, see [llms.txt](https://docs.rainmad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainmad.com/resources/watch-admin-menu/features/economy-and-data.md).

# Economy and data

The **Economy** tab of the menu and the **Economy** and **Data** pages of the web panel: money across the server, invoices, jobs, and every list rm\_watch keeps, with a CSV export.

## Rich list

Cash plus bank of every character, online and offline: top 10, 25, 50 or 100, sorted by total, cash or bank, with the server's totals. Players online are read live; everyone else as of their last save.

## Invoices

Every invoice your billing script holds, filtered by status (unpaid, paid, cancelled, all), by receiver, and by a search over name, reason and society.

* **Pay** takes the amount from the receiver's bank and sends it where the billing script would: the society account (through Renewed-Banking, qb-banking, qb-management, okokBanking or esx\_addonaccount) or, for an esx\_billing bill between two players, the sender's bank. If the receiver cannot afford it, nothing happens.
* **Cancel** removes the invoice. No money moves.

Two staff pressing Pay at the same moment settle it once.

| Billing script                 | Table            | Keeps paid invoices                     |
| ------------------------------ | ---------------- | --------------------------------------- |
| okokBilling                    | `okokbilling`    | Yes                                     |
| esx\_billing                   | `billing`        | No, a paid bill is deleted              |
| Qbox and QBCore phone invoices | `phone_invoices` | No                                      |
| A `bills` table                | `bills`          | When it has a `status` or `paid` column |

The first one found in your database wins, in the order of `cfg.data.billing`. With none of them the page says **None found**.

## Jobs

Every job your framework defines, with its grades, how many characters hold it, how many are online and how many are on duty now. Open a job to see its members and move any of them to another grade or job, online or offline.

## Armour and identity

The **Player** view of the Economy tab (and the web player card):

* **Armour**, 0 to 100. On Qbox and QBCore it is saved to the character, so it is still there after a reconnect.
* **Identity**: first and last name, date of birth, gender and nationality of the character. A loaded character changes live. Names take up to 40 characters. Staff protection applies.

## Offline players

The web panel's **Players** page has **Online** and **Everyone seen**. Open somebody who is not on the server and you can, while they are away: set money, set job and grade, read their inventory, warn them, add a note, ban or jail them by identifier, and list their vehicles. A license with several characters asks you to pick one first.

## Data pages

The **Data** group of the web panel has one page per list. Every page has **Export CSV**, which saves the rows on screen with the filters written on the last line.

| Page          | Lists                                                                                                   |
| ------------- | ------------------------------------------------------------------------------------------------------- |
| All players   | Everyone seen: first and last seen, playtime, warnings, bans, jail time.                                |
| All vehicles  | Every owned vehicle with owner, garage, state and impound fee.                                          |
| All tickets   | Every ticket with status, category, priority and who handles it.                                        |
| Item explorer | Every item, and who holds it, online and offline.                                                       |
| All invoices  | See [Invoices](https://docs.rainmad.com/resources/watch-admin-menu/features/economy-and-data#invoices). |
| All teams     | Every team and its members.                                                                             |
| Jail list     | Everyone serving a sentence, with time left.                                                            |
| Duty logs     | Every staff duty session, with start, end and length.                                                   |
| Jobs          | See [Jobs](https://docs.rainmad.com/resources/watch-admin-menu/features/economy-and-data#jobs).         |

## Configuration

```lua
cfg.data = {
    richListMax = 100,                               -- most rows the rich list may ask for
    billing = { 'okokBilling', 'esx_billing', 'qb' }, -- billing scripts to look for, first match wins
    esxDateFormat = 'DD/MM/YYYY',                    -- ESX only: how a date of birth is written
}
```

## Permissions

| Action                                                                | Default   | Category          |
| --------------------------------------------------------------------- | --------- | ----------------- |
| `economy:richlist`, `economy:invoices`, `economy:jobs`, `economy:job` | moderator | Economy and items |
| `invoice:pay`, `invoice:cancel`                                       | admin     | Economy and items |
| `money:offline`, `job:offline`                                        | admin     | Economy and items |
| `items:offline`                                                       | moderator | Economy and items |
| `warn:offline`, `note:offline`                                        | moderator | Moderation        |
| `data:duty`                                                           | moderator | Data and export   |
| `armour`, `identity`                                                  | moderator | Players           |
| `identity:set`                                                        | admin     | Players           |

An offline action also needs the in-game action it mirrors (`money`, `job`, `inventory`, `warn`, `note`), so a group that may not set money in game cannot set it offline either. The CSV exports run in your browser on what the page already loaded, so they need no right of their own.

{% hint style="info" %}
**RedM:** accounts are VORP cash, gold and rol, or RSG cash, bank and blood money. There are no invoices on VORP or RSG, and **Cores** (health, stamina, dead eye) replace armour. See [Differences from FiveM](https://docs.rainmad.com/resources/watch-admin-menu/redm/differences-from-fivem#economy).
{% endhint %}
