Create Bill Event
---@param target number | string (The target server id | the company / job name)
---@param amount number (The invoice amount)
---@param description string (The invoice reason/desc)
---@param from {label: string, job: string, identifier: string}
---@param src? number (optional, if you want to trigger from server side)
TriggerServerEvent('bill:createBill', target, amount, description, from, src)
TriggerEvent('bill:createBill', target, amount, description, from, src)
From Server side​
local from = {
label = 'Police',
job = 'police',
identifier = 'police',
}
TriggerEvent('bill:createBill', target, 5000, 'Police', from, source)
From Client side​
local from = {
label = 'Police',
job = 'police',
identifier = 'police',
}
TriggerServerEvent('bill:createBill', target, 5000, 'Police', from)
Example sending to company​
This company must exist within the Config.billing
!!!
local from = {
label = 'Police',
job = 'police',
identifier = 'police',
}
TriggerServerEvent('bill:createBill', 'ambulance', 5000, 'Police', from)