r_billing Exports
Open, close and check the r_billing panel from your own resources, with client exports and a server event that opens it for a player.
Available Exports
R_Billing exposes client exports to open and control the panel, plus a server event to open it for a specific player.
Open
Open the panel on a chosen tab
Close
Close the panel
Is Open
Check if the panel is open
Open the panel (client)
Opens the billing panel. The tab is optional. Tabs the player isn't allowed to use are hidden automatically, falling back to My Bills.
Syntax
exports.r_billing:open(tab)Parameters
| Parameter | Type | Description |
|---|---|---|
tab | string | Optional. 'mine' (default), 'send', 'company' |
Example Usage
-- Open straight to the Send Bill tab
exports.r_billing:open('send')Close the panel (client)
exports.r_billing:close()Is the panel open? (client)
Returns true while the panel is open.
Syntax
local open = exports.r_billing:isOpen()Returns
| Type | Description |
|---|---|
boolean | true if the panel is open |
Open for a player (server)
From the server, open the panel for a specific player by triggering the client event:
-- 'mine' | 'send' | 'company'
TriggerClientEvent('r_billing:open', source, 'mine')Use this to wire R_Billing into a qb-target / ox_target zone, an item, or a job menu,
e.g. open 'send' when an officer interacts with a ticketing prop.
Troubleshooting
Common Export Issues
Having problems? Check our troubleshooting guide