# Moh-billing

Introduction — moh-billing

**moh-billing** is a FiveM billing system that lets authorised jobs\
send invoices to nearby players, collect payments, and manage society funds — all\
through an in-game UI.

### Features

* Compatible with **QBCore** and **ESX** (switchable in one config line)
* Send invoices to nearby players with a reason and amount
* Players can pay invoices directly from the UI
* Three money destination modes: `management`, `player`, `split`
* Boss-only Management tab for society fund withdrawals and deposits
* Grade-based access control — only high-rank members can open the Management tab
* Optional VAT display (visual only)
* Optional payment deadline
* Full Discord webhook logging for every action
* All configuration in a single `config.lua` file

### Resources included

| File             | Purpose                                        |
| ---------------- | ---------------------------------------------- |
| `config.lua`     | All server-owner settings                      |
| `bridge.lua`     | Framework abstraction (QBCore / ESX)           |
| `client.lua`     | Client-side logic and NUI callbacks            |
| `server.lua`     | Server-side events, database queries, webhooks |
| `web/ui.html`    | NUI interface                                  |
| `install.sql`    | Database table definitions                     |
| `fxmanifest.lua` | FiveM resource manifest                        |

### Dependencies

* [oxmysql](https://github.com/overextended/oxmysql) — database driver
* QBCore *or* ESX framework


---

# 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://mohssins.gitbook.io/mohscriptsdocs/moh-billing.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.
