> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-billing-system/cas-billing-system.md).

# CAS Billing System

An advanced **Sheriff Billing & Treasury System** for **RedM** roleplay servers on **VORP**. Issue official invoices, let players dispute them, apply state tax automatically, and manage per-job treasuries with secure, Discord-audited withdrawals.

## Highlights

* **Sheriff & government invoicing** — reason, amount, due date and signature
* **Dispute system** — players formally contest an invoice with a written statement and signature
* **Tax integration** — automatic state tax deduction per configured region
* **Job treasury** — each job holds its own balance, grown from invoice payments
* **Secure withdrawals** — permitted job members withdraw, with a Discord-logged audit trail
* **Dynamic notifications** — every action notifies the involved parties with context
* **Full localization** — translate the whole system; language auto-selected per player
* **Discord logging** — every financial action logged with in-game name, Steam ID and Discord ID

## At a glance

|              |                                                |
| ------------ | ---------------------------------------------- |
| Framework    | VORP                                           |
| Dependencies | `mega_nplayerselector`, `cas_fwlibs`, VORPCore |
| Localization | Automatic per-player language                  |

## Requirements & dependencies

* [mega\_nplayerselector](https://github.com/MegaITA/mega_nplayerselector)
* [cas\_fwlibs](https://github.com/codeaftersex/cas_fwlibs)
* VORPCore

## Installation

1. Install the dependencies listed above.
2. Start the resource.
3. Configure the `config` and `locales` files carefully.
4. Include every language used on your server — the system automatically selects each player's language. No extra setup is required beyond this.

## Preview

[YouTube — CAS Billing System](https://www.youtube.com/watch?v=AJSOTix8G40)

## Support

Join the [CAS Discord](https://discord.gg/X8bTK9Stwk) or use the support channel on your product page.
