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'. It is a no-op while Config.LBTablet.Enabled is true.
-- 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.
LB Tablet mode
While Config.LBTablet.Enabled is true, the app inside LB Tablet is the
only way to open the UI, and this export returns without doing anything.
LB Tablet exposes no export for opening a specific app from Lua, so
there is no equivalent call to forward to. Existing callers get a no-op
rather than an error, so nothing breaks when you switch modes.