> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_mdt/integrations/billing.md).

# Billing

When an incident with charges is filed, the MDT bills the criminals who are online. See [Incidents and Fines](https://documentation.rcore.cz/paid-resources/rcore_mdt/features/incidents-and-fines.md#fines-and-sentencing).

## 💵 Default Billing

{% tabs %}
{% tab title="ESX" %}
Bills are sent through `esx_billing` to the `society_police` society.

Make sure `esx_billing` is running.
{% endtab %}

{% tab title="QBCore" %}
The fine amount is taken from the player's cash.
{% endtab %}

{% tab title="QBX" %}
The fine amount is taken from the player's cash.
{% endtab %}

{% tab title="Standalone" %}
Fines are recorded in the MDT, but players are not billed.
{% endtab %}
{% endtabs %}

## 🛠️ Use Another Billing Resource

Billing is handled in two open files:

| File                     | Used for                                                   |
| ------------------------ | ---------------------------------------------------------- |
| `client/api/billing.lua` | Sends the bill. Edit `Billing.SendBill`.                   |
| `server/lib/fines.lua`   | QBCore and QBX cash removal (`rcore_mdt:server:sendBill`). |

Replace the code in `Billing.SendBill` to send bills through your own billing or banking resource.
