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

# Envoyer une facture

> Envoie une facture à un joueur cible.

Déclencheur pour envoyer une facture à un joueur cible.

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

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `targetId` | integer | Server ID du joueur cible |
| `societyName` | string | Nom de la société (elle recevra l'argent de la facture payée) |
| `reason` | string | La raison de la facture |
| `amount` | integer | Le montant de la facture |

## Exemple

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