> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pay a bill

> Pay a bill by its ID, for example from an external script.

Trigger to properly pay a bill by its ID — you can use this from external scripts.

```lua Event theme={null}
TriggerServerEvent("billing_ui:payInvoice", billId)
```

### Parameters

| Name     | Data Type | Description                                     |
| -------- | --------- | ----------------------------------------------- |
| `billId` | integer   | The bill ID (from the database table `billing`) |


## Related topics

- [Client](/billing-ui/client/index.md)
- [On bill created](/billing-ui/server/on-bill-created.md)
- [On bill paid](/billing-ui/server/on-bill-paid.md)
- [Refresh bill](/billing-ui/server/refresh-bill.md)
- [Create bill](/billing-ui/server/create-bill.md)
