Skip to main content
All commands are registered via lib.addCommand, so they show up in ox_lib’s chat suggestions for the players who can actually use them. Each command’s name is configurable from shared/config.lua.
CommandWhoConfigured atWhat it does
/dealershipadminAdmins (ace nex_dealerships.admin, group.admin, or group.superadmin)Config.AdminPanel.CommandOpens the admin panel — catalog editor, importer, dealership ownership controls.
/dealershipmgmtDealership owners and managers (job, owner ID, or ace nex_dealerships.manage)Config.Management.CommandOpens the management dashboard for any owned lot the caller has access to.
/financemenuAnyone with active loans (or to read the empty state)Config.Financing.CommandOpens the financing menu — active loans, pay early, pay off.
/sellvehicleAny player near a dealershipConfig.SellVehicle.Command
(currently always sellvehicle)
Opens the buyback menu for vehicles you own.
Set any command name to '' (empty string) in config to disable the command. The underlying server events still work — useful if you want to call them from your own UI or hotkey.

Renaming a command

Change the value in shared/config.lua and restart nex_dealerships:
Config.Financing.Command  = 'mycarloans'        -- /mycarloans
Config.Management.Command = 'dealership'        -- /dealership
Config.AdminPanel.Command = 'vehadmin'          -- /vehadmin
Players have to reconnect for chat suggestions to refresh; the command itself works immediately.

Granting admin / management access

PermissionWhat it unlocksHow to grant
nex_dealerships.admin/dealershipadminadd_ace identifier.steam:<HEX> nex_dealerships.admin allow
nex_dealerships.manage/dealershipmgmt for every owned lot (admin bypass)add_ace identifier.steam:<HEX> nex_dealerships.manage allow
(none)/dealershipmgmt for the lot you’re the owner ofSet via /dealershipadminSet Owner.
(none)/dealershipmgmt for the lot whose Owner = 'jobName' matches your current jobHire them via the management dashboard’s Employees tab, or set their job manually.
Admins in group.admin / group.superadmin get /dealershipadmin automatically without needing the ace — but they do not get /dealershipmgmt blanket-access unless they also hold the nex_dealerships.manage ace.

Server events (for integrators)

If you want to wire these into your own UI:
EventDirectionWhat it does
nex_dealerships:admin:requestOpenclient → serverSame as /dealershipadmin. Server runs the ace check.
nex_dealerships:management:requestOpenclient → serverSame as /dealershipmgmt. Server runs the per-lot access check.
nex_dealerships:sell:openserver → clientOpens the buyback UI for a given source. Trigger from your own command if you want to gate buybacks differently.
nex_dealerships:finance:openserver → clientOpens the financing menu.