> ## 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.

# Send a bill

> Send an invoice to a target player.

Trigger to send an invoice to a target player.

```lua Event theme={null}
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 theme={null}
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)
```


## 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)
