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

> Envía una factura a un jugador objetivo.

Trigger para enviar una factura a un jugador objetivo.

```lua Event theme={null}
TriggerServerEvent("billing_ui:sendBill", targetId, societyName, reason, amount)
```

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `targetId` | integer | ID de servidor del jugador objetivo |
| `societyName` | string | Nombre de la sociedad (recibirá el dinero de la factura pagada) |
| `reason` | string | El motivo de la factura |
| `amount` | integer | El importe de la factura |

## Ejemplo

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.