Send a bill
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Trigger to send an invoice to a target player
TriggerServerEvent("billing_ui:sendBill", targetId, societyName, reason, amount)
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
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)