HEX
HexscriptsJobscreatorExportsClient Exports

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

ValueMeaning
truemenu opened
false, reasonsee the reasons below

Reasons

CodeMeaning
handcuffedcuffed players cannot open this
billing_disabledno job of this player has billing switched on
grade_too_lowthe player's grade is below the required minimum
not_on_dutythe 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

ValueMeaning
truealways

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

ValueMeaning
truelist opened
false, reasonsee the reasons below

Reasons

CodeMeaning
handcuffedcuffed players cannot open this
no_billsthe player has no unpaid bills