> For the complete documentation index, see [llms.txt](https://docs.okokscripts.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.okokscripts.io/scripts/okokbilling/snippets.md).

# Snippets

### Create custom invoices

```lua
TriggerServerEvent("okokBilling:CreateCustomInvoice", target, price, reason, invoiceSource, society, societyName, authorIdentifier)
```

#### Variables:

**target**: `xTarget.source`

**price**: `500`

**reason**: `Speeding`

**invoiceSource**: `Highway Radar`

**society**: `police` (you can remove this in case you want no society to receive money)

**societyName:** `LSPD` (you can remove this in case you want no society to receive money)

### Event to open the My Invoices menu (client side)

```lua
TriggerEvent("okokBilling:ToggleMyInvoices")
```

### Event to open the Create Invoice menu (client side)

```lua
TriggerEvent("okokBilling:ToggleCreateInvoice")
```
