Requirements
- FiveM server with
lua54enabled - MySQL or MariaDB
- One of:
qbx_core,qb-core, ores_extended ox_liboxmysql
Steps
-
Drop the resource into your server, e.g.
resources/[nex]/nex_dealerships/. -
Add it to your
server.cfgafter its dependencies: - Start your server. The database tables are created automatically on first start — no SQL to run.
-
Grant admin access for the catalog panel. Either:
…or rely on the default FiveM admin groups (
group.admin,group.superadmin). Both are accepted out of the box. -
In-game, run
/dealershipadmin→ Import and pick your framework. This loads the bundled vehicle list fromqb-core/qbox/esxinto the dealership catalog.
Vehicles only show up at a lot once the catalog has entries and the lot’s Categories match those vehicles’ categories. Step 5 is what wires those up — don’t skip it.
Manual SQL install (optional)
The resource creates allnex_dealership_* tables on boot. If you’d rather pre-create them — to inspect the schema, split maintenance windows, or pre-grant DB permissions — run the matching file from install/:
| File | When to use |
|---|---|
install/install-qb.sql | QBCore / Qbox servers |
install/install-esx.sql | ESX servers |
install/existing.sql | Seeds the catalog with ~864 stock GTA vehicles. Optional — you can also seed via the admin panel’s Import tab. |
CREATE TABLE IF NOT EXISTS and are safe to re-run.
Checking it worked
From F8:started. If it prints missing or stopped, fix server.cfg and restart.
To check that the framework was detected, temporarily set Config.Debug = true in shared/config.lua and restart — boot logs print the detected framework, notify system, target system, and keys system.
Updating
shared/config.lua, shared/locations.lua, shared/locale.lua, shared/vehicles.lua, and every file in integrations/ are listed under escrow_ignore and are preserved across updates. Catalog, settings, sales, loans, employees, stock, orders, and display-vehicle data all live in MySQL and are preserved automatically.
- Replace the resource files with the new version (keep your edited
shared/andintegrations/files). - Restart the server.

