Tuning
- oxmysql (opens in a new tab) (recommended) / mysql-async (opens in a new tab)
- ox_lib (opens in a new tab)
Installation
- Place the script in the resources folder. Make sure to ensure oxmysql and ox_lib before this script.
- Ensure the script in the server.cfg
- configure it to your liking!
Configuring
How are the price calculated?
By default in the Config.price
, its calculated based on the vehicle price in esx vehicles and qb/qbx dealer.
If the vehicle is not listed in the dealer or not found, then it will default to the Config.DefaultPrice.ImportVehicle
Creating modification points or shops
There are two types of tuning shop:
- Job based shop
- Player based shop
If you want to create a tuning shop where there must be a certain job to install the parts and uses company money.
Then you can create a modification shop within Config.Mechanic
with the property Config.Mechanic.Options.job = 'yourjobname'
.
Here is an example
Options = {
name = 'LS Custom', -- The name of the shop
Blip = {
sprite = 446,
scale = 0.8,
colour = 61,
},
job = 'mechanic', -- The job that can access the shop tuning, if you want to disable set it to false so everyone can access it
billing = true, -- If false then it will bill the tuner directly and have to pay immediately
account = 'money',
EmployeeFee = 20 -- The employee cut for the tuning price
}
If you want all players to be able to access the menu then make the job = false
and billing = false
Options = {
name = 'Modification Shop', -- The name of the shop
Blip = {
sprite = 446,
scale = 0.8,
colour = 61,
},
job = false, -- The job that can access the shop tuning, if you want to disable set it to false so everyone can access it
billing = false, -- If false then it will bill the tuner directly and have to pay immediately
account = 'money',
EmployeeFee = 0 -- The employee cut for the tuning price
}
Last updated on