Installation
JG MechanicPurchase on the JG store
Download & unzip
Unzip the jg-mechanic-bundle and open it - the folders inside are the resources for your server.
Add the resources to your server
Drag all 4 folders (jg-mechanic, jg-mechanic-props, jg-vehiclemileage and jg-textui) into a new folder called [jg] within your server's resources folder.
If you don't plan on using our new default Text UI, 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]Set up inventory items
Navigate into the install folder, and then into the inventory folder. Follow the guide for your chosen inventory - the item images are in the images folder.
Configure the script
Inside the config folder, config.lua is the core configuration - most integrations (framework, text UI, notifications and more) are automatically detected. The main things to customise are mechanic locations, core pricing, servicing and tuning options.
The 3 other config files fine-tune how cosmetics, servicing & tuning work in your city. They are heavily commented, but can be a little complicated - only modify them if you're comfortable with Lua.
Video Installation Guide
Scorpion from the JG Scripts community has created a detailed installation guide, including configuration & inventory setup for QB, Qbox & ESX.
Troubleshooting
JG Mechanic tries to make the required database changes automatically. In rare cases this fails, and you need to make the changes manually.
Head into the install folder within jg-mechanic. Run the database/run.sql 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!