Installation
JG DealershipsPurchase on the JG store
Download & unzip
Unzip the jg-dealerships-bundle and open it - the folders inside are the resources for your server.
Add the resources to your server
Drag jg-dealerships into a new folder called [jg] within your server's resources folder.
If you don't plan on using our new default Text UI, jg-textui, you don't need to transfer it to your server. You can choose a different Text UI script in the config.
Update your server.cfg
In your server.cfg, add a new line after all your other resources have started:
ensure [jg]You should probably disable qb-vehicleshop or esx_vehicleshop because there will be location clashes.
Migrating from v1?
If you're upgrading and want to keep all of your existing data, stop here and follow Migrating from v1 first.
Configure the script
Core options live in config/config.lua. Most are set to auto, so in some cases you may not need to edit this file at all - the important ones are Localisation, Framework & Integrations and Interaction Methods. Custom dealership categories are also added here, under Config.Categories.
Locations and vehicles are managed entirely in-game - see Setting Up Locations and Adding Vehicles next.
Troubleshooting
JG Dealerships tries to automatically make the required database changes. In some cases, this automatic installation fails and you need to make the changes manually.
Head into the install folder within jg-dealerships. Run either the run-qb.sql (QBCore & Qbox) or run-esx.sql (ESX) file in your database software (such as PhpMyAdmin or HeidiSQL).
If you get an error along the lines of cannot use the syntax IF NOT EXISTS, remove every instance of IF NOT EXISTS from the run.sql file and re-run it. It will still run fine.
Make sure you are running this SQL code within the correct database - triple check and cross reference the name of the database!