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:useJobTabletclientOpen 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
jobtabletinventory item (viaclient.exportinox_inventory, or viaCreateUseableItemon QBCore). - The
/employeelistcommand and itsConfig.UIKeykeybind. - The server-side
nx_employeemanagement:openTabletevent that the inventory bridge fires when the item is used on QB-style inventories.