โšกEvents

Add Custom Invoice

Trigger to add a custom invoice to a player.

-- CLIENT SIDE
TriggerServerEvent('infin_billing:server:SendCustomBill', targetId, senderId, amount, reason, dueDate)

-- SERVER SIDE
TriggerEvent('infin_billing:server:SendCustomBill', targetId, senderId, amount, reason, dueDate)

targetId

The player you which to send the bill too

senderId

The player who sent the bill

amount

The bill amount. For example, 100 would be $100

reason (optional)

Reason for the bill, can be nil. For example: "Police Fine"

dueDate (optional)

The date you wish to have as the due date will have to be in timestamp format, but don't worry you can convert any date easily using the following tool:https://www.whatsmyip.org/string-timestamp-converter/

Update Players Bills

Trigger to manually check for bills

-- CLIENT SIDE
TriggerEvent('infin_billing:client:updateBills')

-- SERVER SIDE
TriggerClientEvent('infin_billing:client:updateBills', source)

source

Only required on server side, indicated which players bills you want to update, can be -1 to update everyone's in the server,

Last updated