Exports
Server Exports
GetInvoiceById
Returns an invoice by its ID.
exports['RxBilling']:GetInvoiceById(invoiceId)
ID of the invoice to retrieve.
GetPlayerInvoices
Returns all invoices for a player, optionally filtered by type and job name.
exports['RxBilling']:GetPlayerInvoices(identifier, invoiceType, jobName)
Identifier of the player to retrieve invoices for.
Type of the invoice to retrieve.
Name of the job to filter invoices by.
PayInvoice
Pays an invoice for a player, optionally updating the amount.
exports['RxBilling']:PayInvoice(playerId, invoiceId, newAmount)
ID of the player to pay the invoice for.
ID of the invoice to pay.
New amount to pay.
SendInvoice
Sends an invoice from one player to another, optionally specifying a reason and whether it's a job invoice.
exports['RxBilling']:SendInvoice(fromPlayerId, sendTo, amount, reason, isJobInvoice)
ID of the player sending the invoice.
ID of the player OR job name to send the invoice to.
Amount of the invoice.
Reason for the invoice.
Whether the invoice is sent by job from the player.
Client Exports
PayInvoice
Pays an invoice for a player, optionally updating the amount.
exports['RxBilling']:PayInvoice(invoiceId, newAmount)
ID of the invoice to pay.
New amount to pay.
SendInvoice
Sends an invoice to the player or a job, optionally specifying a reason and whether it's a job invoice.
exports['RxBilling']:SendInvoice(sendTo, amount, reason, isJobInvoice)
ID of the player OR job name to send the invoice to.
Amount of the invoice.
Reason for the invoice.
Whether the invoice is sent by job from the player.