Skip to main content
/dealershipadmin is the server-wide vehicle catalog editor and ownership manager. Run it in chat and the admin panel opens; changes go live to every connected client immediately — no restart.

Who can open it

Anyone whose identity matches any of:
  • The configured ace permission (Config.AdminPanel.AcePermission, default nexdev_dealerships.admin)
  • group.admin or group.superadmin (so admins work out of the box)
  • command.dealershipadmin (ox_lib’s restricted-command flag)
Grant a non-admin like this:
Or grant a whole group:
If the command does nothing when you type it, you don’t have any of these.

Catalog tab

The catalog is the global list of vehicles available across every dealership lot. Filter by category, search by name, click a row to edit it. Click Save and the entry is upserted into nexdev_dealership_vehicles and broadcast to every client. Delete soft-deletes (sets deleted = 1) so historical sales rows keep their references valid.

Add vehicle tab

A form for one-off additions. Same fields as Catalog → edit.

Import tab

Pulls a vehicle list from your framework’s bundled vehicle data:
  • QBCore — reads QBCore.Shared.Vehicles
  • Qbox — reads exports.qbx_core:GetVehiclesByName()
  • ESX — reads from the vehicles table
Pick a source (or Auto to use the detected framework), preview the merged diff, set the defaults for missing fields (price, category — see Config.AdminPanel.Import), and click Import. The flow is idempotent: re-importing only adds new models, never overwrites your edits.
A bulk-seed SQL file lives at install/existing.sql (around 864 stock GTA vehicles). If you’d rather seed from there than from the framework, run it once against your DB before opening the admin panel.

Dealerships tab

Per-lot ownership and lifecycle controls.
Erase Dealership does not refund pending restock orders or active loans. Cancel those from the management dashboard first if you need to.

Catalog sync

Every catalog save is broadcast to all online clients via nexdev_dealerships:admin:syncCatalog. The local Vehicles table merges the patch — saves go live immediately and other admins’ edits appear without a refresh. On player join, the client fetches the full catalog so late-joiners see your edits without a server restart.