Exports
Server-side
Send Invoices
exports['okokBilling']:CreateInvoice(receiver, amount, reason, author)Example: Society Invoice
Send a 500€ speeding fine to a player on behalf of the police department.
exports['okokBilling']:CreateInvoice(12, 500, 'Speeding', 'police')Example: Personal Invoice
Send a 200€ invoice directly from one player to another.
exports['okokBilling']:CreateInvoice(39, 200, 'Cleaning Vehicle', 7)Parameters
Parameter
Description
receiver
Server ID of the player or society ID receiving the invoice
amount
Invoice amount
reason
Reason or description of the invoice
author
Server ID of the player or society ID sending the invoice
Fetch Invoices
Use this server-side export to retrieve invoices associated with a specific player.
local invoices = exports['okokBilling']:getInvoices(target)Parameters
Parameter
Description
target
Server ID of the player or society ID
Example Response:
Pay Reference
Parameters
Parameter
Description
payer
Server ID of the player that will pay the invoice
reference
Unique reference number of the invoice to pay
Last updated