🎉 Driving School is released. Read more →
Paid Scripts
Company Manager v5
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('CompanyManager:server:CreateOfflineBill', targetIdentifier, targetName, amount, description, from, src)
TriggerEvent('CompanyManager:server:CreateOfflineBill', targetIdentifier, targetName, amount, description, from, src)

From Server side

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

From Client side

    local from = {
        label = 'Police',
        job = 'police',
        identifier = 'police',
    }
    TriggerServerEvent('CompanyManager:server: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('CompanyManager:server:CreateOfflineBill', 'ambulance', 'Ambulance', 5000, 'Police', from)