Tuner Shop job
Script Installation Guide
Installing this package is quite simple. Follow the steps below:
Step 1: Download
Download the script from your Keymaster.
Step 2: Extract
Extract the package locally.
Step 3: Upload
Upload the script to your server files.
Step 4: Start Order
Start this script after all of our other scripts to ensure exports work correctly.
For assistance with
server.cfg
setup, refer to the Handling installation documentation.
Step 5: Requirements
Framework: ESX
Supported resources:
ox_inventory
ox_lib (can be swapped in the
bridge
folder)ox_target
Step 6: Mileage Integration (Optional)
If you want to enable mileage-based health degradation, you must add the following export to your mileage script immediately after the mileage is updated in the database.
Example (using jg-vehiclemileage
):
exports['ug_tuner_shop']:HandleMileageChange(plate, mileage)
Step 7: Crash Degradation (Optional)
If you want to degrade upgrades based on crash/damage events, use the following export whenever you want to trigger it — or simply use our Vehicle Damage System:
exports["ug_tuner_shop"]:ApplyCrashDegradation(plate)
Step 8: Inventory Items
Inside the
Installation
folder you will find the required inventory items.Make sure to add them to your inventory system.
Step 9: Database Setup
Before starting the script, add the following column to your owned_vehicles
table:
ALTER TABLE owned_vehicles ADD COLUMN upgrades JSON NULL;
This column is required to store installed upgrades.
Last updated