Billing
Client exports to open the job billing menu and the player's own list of unpaid bills.
openBillingMenu
⏳ Needs a thread see Calling from a thread.
Opens the job billing menu (send a bill / view sent bills) for whichever of the player's two jobs has billing enabled and a high enough grade.
local ok, err = exports['hex_jobscreator']:openBillingMenu()Returns
| Value | Meaning |
|---|---|
true | menu opened |
false, reason | see the reasons below |
Reasons
| Code | Meaning |
|---|---|
handcuffed | cuffed players cannot open this |
billing_disabled | no job of this player has billing switched on |
grade_too_low | the player's grade is below the required minimum |
not_on_duty | the job has a duty point and the player is clocked out |
closeBillingMenu
Closes the resource's open menu.
exports['hex_jobscreator']:closeBillingMenu()Note
The menu layer (ESX / ox_lib / hex_menu_api) has no per-menu close, so this closes whichever hex_jobscreator menu is currently on screen. It is safe to call when nothing is open.
Returns
| Value | Meaning |
|---|---|
true | always |
openMyBills
⏳ Needs a thread see Calling from a thread.
Opens the player's own list of unpaid bills the same list as the F7 keybind.
local ok, err = exports['hex_jobscreator']:openMyBills()Returns
| Value | Meaning |
|---|---|
true | list opened |
false, reason | see the reasons below |
Reasons
| Code | Meaning |
|---|---|
handcuffed | cuffed players cannot open this |
no_bills | the player has no unpaid bills |