NX CreativeNX CreativeDocs
Scriptsnx_employeemanagement

Exports

Public exports registered by nx_employeemanagement.

nx_employeemanagement registers a single public client export. Everything else (hiring, firing, invoicing, payroll) flows through the tablet UI, internal lib.callback channels, and database tables.

Client

exports.nx_employeemanagement:useJobTabletclient

Open the employee management tablet UI for the local player. Boss access is resolved through Config.IsBossRank against the per-job Config.AllowedRanks table, and granular rank grants are applied on top. Non-boss employees see the self-service dashboard when Config.SelfService.Enabled is true. Bound to the jobtablet inventory item through the ox_inventory client export hook. The export opens the UI in every Config.Tablet.access.mode, including 'zone'.

-- Open the tablet from any client script
exports.nx_employeemanagement:useJobTablet()

The same entry point is used by:

  • The jobtablet inventory item (via client.export in ox_inventory, or via CreateUseableItem on QBCore).
  • The /employeelist command and its Config.UIKey keybind.
  • The server-side nx_employeemanagement:openTablet event that the inventory bridge fires when the item is used on QB-style inventories.

On this page