# Send a bill

Trigger to send an invoice to a target player

## Event

```lua
TriggerServerEvent("billing_ui:sendBill", targetId, societyName, reason, amount)
```

### Parameters

| Name          | Data Type | Description                                                 |
| ------------- | --------- | ----------------------------------------------------------- |
| `targetId`    | integer   | Target player server ID                                     |
| `societyName` | string    | Society name (it will receive the money from the paid bill) |
| `reason`      | string    | The reason of the invoice                                   |
| `amount`      | integer   | The amount of the invoice                                   |

## Example

```lua
local closestPlayer, closestDist = ESX.Game.GetClosestPlayer()
local targetId = GetPlayerServerId(closestPlayer)
local societyName = "society_police"
local reason = "Speed limit"
local amount = 500

TriggerServerEvent("billing_ui:sendBill", targetId, societyName, reason, amount)
```


---

# 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://documentation.jaksam-scripts.com/billing-ui/client/send-a-bill.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.
