🎉 Driving School is released. Read more →
Paid Scripts
Company Manager
Functions & Events
Server
CreateOfflineBill

Create Bill Event

---@param targetIdentifier string (The target identifier / citizen id | the company / job name)
---@param targetName string (The full name of the target)
---@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:createOfflineBill', targetIdentifier, targetName, amount, description, from, src)
TriggerEvent('bill:createOfflineBill', targetIdentifier, targetName, amount, description, from, src)

From Server side

    local from = {
        label = 'Police',
        job = 'police',
        identifier = 'police',
    }
    TriggerEvent('bill:createOfflineBill', targetIdentifier, targetName, 5000, 'Police', from, source)

From Client side

    local from = {
        label = 'Police',
        job = 'police',
        identifier = 'police',
    }
    TriggerServerEvent('bill:createOfflineBill', targetIdentifier, targetName, 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:createOfflineBill', 'ambulance', 'Ambulance', 5000, 'Police', from)