For the complete documentation index, see llms.txt. This page is also available as Markdown.

API and Exports

The Billing System provides several exports that allow other resources to interact with the system programmatically.

Client-Side Exports

Open Tablet

Opens the billing tablet for the player.

exports['src-billing']:OpenBilling()

Close Tablet

Closes the billing tablet if it is currently open.

exports['src-billing']:CloseBilling()

Check if Open

Returns true if the tablet is currently open, false otherwise.

local isOpen = exports['src-billing']:IsBillingOpen()

Server-Side Exports

Create Invoice

Programmatically create an invoice without using the UI.

Get Invoice Details

Retrieve data for a specific invoice ID.

Get Player Invoices

Retrieve all invoices where the player is either the creator or the target.

Get Job Settings

Retrieve configuration settings for a specific job.


Events

Client Events

src-billing:client:receiveInvoice

Triggered when a player receives a new invoice.

src-billing:client:invoicePaid

Triggered when a player successfully pays an invoice.

Server Events

src-billing:server:createInvoice

Triggered to create a new invoice (Internal use recommended).


Note: When using CreateInvoice via export, the system automatically handles database insertion and cache updates.

Last updated