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

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 items? {name:string, price:number, amount:number}[] (optional, if you want to send items)
---@param from {label: string, job: string, identifier: string}
---@param src? number (optional, if you want to trigger from server side)
TriggerServerEvent('CompanyManager:server:CreateBill', target, amount, description, items, from, src)
TriggerEvent('CompanyManager:server:CreateBill', target, amount, description, items, from, src)

From Server side

    local from = {
        label = 'Police',
        job = 'police',
        identifier = 'police',
    }
    TriggerEvent('CompanyManager:server:CreateBill', target, 5000, 'Police', nil, from, source)

From Client side

    local from = {
        label = 'Police',
        job = 'police',
        identifier = 'police',
    }
    TriggerServerEvent('CompanyManager:server:CreateBill', target, 5000, 'Police', nil, from)

Example sending to company

This company must exist within the Config.billing!!!

    local from = {
        label = 'Police',
        job = 'police',
        identifier = 'police',
    }
    TriggerServerEvent('CompanyManager:server:CreateBill', 'ambulance', 5000, 'Police', nil, from)