Skip to main content

Requirements

Everything else is optional and auto-detected — see Integrations & exports.

Steps

  1. Download the resource from your Cfx.re Portal granted assets and drop it into your server, e.g. resources/[nex]/nex_garages/.
  2. Add it to your server.cfg after its dependencies:
    ensure oxmysql
    ensure ox_lib
    ensure qbx_core           # or qb-core / es_extended
    ensure nex_garages
    
  3. Start your server. The database schema installs itself on first start — the console prints SQL setup complete when it’s done.
  4. Grant staff access for the admin commands. The in-game garage editor accepts the ACE groups from Nex.Config.CustomGarages.allowedGroups (defaults: god, admin, mod):
    add_ace group.admin admin allow
    
That’s it — the default garages and impound lots appear on the map.

Manual SQL install (optional)

Prefer to run the SQL yourself? Set AutoRunSQL = false in config/main.lua and import the matching files from install/:
FileWhen to use
install/qb-qbx/schema-qb.sqlQBCore / Qbox servers
install/esx/schema-esx.sqlESX servers
install/schema-features.sqlBoth — feature columns and tables (mileage, sharing, pins, audit log)
All statements use IF NOT EXISTS and are safe to re-run.

Checking it worked

From F8:
lua print(GetResourceState('nex_garages'))
Should print started. If it prints missing or stopped, fix server.cfg and restart. To verify framework detection, temporarily set Debug = true in config/main.lua and restart — boot logs print what was detected.

Updating

Every file in config/ and bridge/ is listed under escrow_ignore and stays editable — keep your copies when updating. Vehicles, private garages, custom garages, pins and audit logs all live in MySQL and are preserved automatically.
  1. Replace the resource files with the new version (keep your edited config/ and bridge/ files).
  2. Restart the server.
The resource checks for updates on start and prints a console notice when a newer version is available in your granted assets.