> For the complete documentation index, see [llms.txt](https://gscripts.gitbook.io/gscripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gscripts.gitbook.io/gscripts-docs/gs-citations/payments-and-persistence.md). Agents can also search and read this documentation through its [MCP server](https://gscripts.gitbook.io/gscripts-docs/~gitbook/mcp).

# Payments and persistence

### Payment modes

**rp:** paper-only notices with no payable debt.

**desk:** a correctly named character receives a payable debt as soon as the officer issues the citation. Paper possession is not required to pay.

**automatic:** tries a bank debit at issuance only if the matched character is online. Offline recipients and failed debits remain unpaid for desk payment. It does not silently debit them on a later login.

Blank/zero amounts create warnings. Unknown or ambiguous names do not charge anyone. AllowNegativeBank permits an overdraft attempt only for automatic bank payments and only if the framework/custom adapter supports it; manual payment always requires sufficient funds.

### Cash and bank

Manual methods are controlled by PaymentAccounts. In ESX + ox\_inventory, cash comes from the money inventory item; bank comes from the ESX account. QBCore uses its cash/bank money functions. Custom money systems need a server debit adapter.

### What is saved

Resource KVP stores unpaid citations, paper-only records, drafts, a reference counter, known character names and standalone wallets. No citation SQL table is created. An existing oxmysql integration is optional for offline ESX/QB name lookup.

Keep the resource name gs\_citations and back up the FXServer server-data/db directory before updates. Copying the script folder alone does not back up KVP records.

### After payment or deletion

The payable register entry is removed, including its stored citation record. The script does not keep a paid/deleted history. Standalone wallet references or physical copies elsewhere may remain, but cannot reopen a deleted record. External MDTs must retain their own history.

### Interrupted payments

If a money operation errors or the server stops during settlement, a payment\_review marker prevents another debit. A staff member must check the real transaction first. It is deliberately not offered as another payable unpaid fine.

```
# Server console only, after checking the transaction:
citationresolve Citation-000001BT paid
# Use active only after verifying no debit occurred:
citationresolve Citation-000001BT active
```

The paid option removes the register entry without charging again. The active option returns a review record to payable status. Never run either command on assumption.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gscripts.gitbook.io/gscripts-docs/gs-citations/payments-and-persistence.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
