/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, defaultnexdev_dealerships.admin) group.adminorgroup.superadmin(so admins work out of the box)command.dealershipadmin(ox_lib’s restricted-command flag)
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
vehiclestable
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.Catalog sync
Every catalog save is broadcast to all online clients vianexdev_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.
