Config File
🌟 Our amazing Mechanic script!
Config = {}
Config.Debug = false
Config.Language = 'en' -- Just 'pt' or 'en' for now
Config.Utils = {
RunSQL = false, -- IMPORTANT: Only works if Config.Utils.UseMaintenance are true | Creates the table in the database when starting the script (Once used turn false to prevent the script from trying to load the table every time it starts)
BSAirplaneEngineer = true, -- Coming Soon! ;) | If true Diagnostic Tool wont be use on planes and helicopters
Command = {
UseFixCommand = false, -- true or false | Use fix command to repair and refuel vehicles that Player is in
FixCommand = 'fix', -- Change the command name according to your likings
FixCommandPermission = 'mod', -- Change according your admin permission
FuelResource = 'none', -- Only works if Config.UseFixCommand = true and supports any fuel resource that use SetFuel export | Use 'none' to disable
UseNotification = false, -- If you want a Vehicle Repaired Notification when using command /fix | true uses Notification, false don't use Notification
UseCheckVehicleDistanceCommand = false, -- true or false | Use Check Vehicle Distance command, it sends a notification with the vehicle distance and last maintenance (If enabled)
CheckVehicleDistanceCommand = 'vdistance' -- Change the command name according to your likings
},
Jobs = {
'bennys',
'mechanic',
-- Add here more if you want
},
MenuColor = '#74c0fc', -- Put here what color do you want on Menus
Unit = 'Km', -- Km or Mi
DiagnosticTool = 'diagnostictool', -- Put here what Item is used for the diagnostic tool (Ex. 'ITEM NAME' or false to disable)
UseOwnerSystem = false, -- true or false | If true, then only players' vehicles will be able to be checked using the Diagnostic Tool, as well as using the Maintenance system and the distance system (Km or Mi). If false, then all vehicles (Including NPC's vehicles) will use this systems
UseMaintenance = false, -- true or false | If true every vehicle will have distance tracking, and will need to have maintenance at every Config.Utils.Maintenance.Distance, if false vehicles don't have distance and will not need to have maintenance
GivePreviousVehiclePartBack = true, -- true or false | Enable or disable player for receiving vehicle previous part installed | Example: if vehicle has engine level 4 and player will install level 0 will receive level 4 item after installing
InstallingProgressbarTime = 5000, -- 5 seconds (Installing Items progress bar time)
PaintTime = 5000, -- 5 seconds | How long it takes to paint a vehicle in seconds
HornTime = 10000, -- 10 seconds | How long it start the vehicle horn
BuiltIn = {
UseBuiltInCraftSystem = false, -- true of false | If you want to use the Built-In Crafting System or not (Add Crafts in Config.Crafts)
UseBuiltInBossMenu = false, -- true or false | If you want to use the Built-In Boss Menu or not (Add Locations in Config.BossMenus)
UseBuiltInGarage = false, -- true of false | If you want to use the Built-In Garage or not (Add Garages at Config.Garages and Vehicles at Config.Vehicles)
UseBuiltInShop = false, -- true or false | If you want to use the Built-In Shop system or not (Add Shops at Config.Shops)
UseBuiltInDutyChanger = false, -- true of false | If you want to use the Built-In Duty Changer or not (IMPORTANT: Only works with QBCore)
ActionsMenu = {
UseActionsMenu = false, -- true or false | If you want to use the Actions Menu with some Mechanic functionalities or not
ActionsMenuKey = 'f5', -- Put here what key you want to use to open Actions Menu | Only works if Config.Utils.UseActionsMenu = true
},
Billing = {
UseBuiltInBilling = false, -- true or false | If you want to use the Built-In Billing Menu (true) or the one specified at bs-lib/utils/FiveM/billing.lua (false)
PayToSociety = true, -- true or false | If you want the Bill value to go to society or not
PayToMechanic = true, -- true or false | If you want to Pay a percentage for the Mechanic, set the percentage at PlayerReceivePercentage option below or not
PlayerReceivePercentage = 25, -- Percentage | If you want Mechanic to receive a Percentage of the Bill value | IMPORTANT: Only works if PayToMechanic is true
UseOkOkBankingTransactions = false -- true or false | Add Okok Banking transactions | IMPORTANT: Only works if you have okokBanking (QBCore: https://okok.tebex.io/package/5126430 | ESX: https://okok.tebex.io/package/5126428) or not
},
},
Body = {
item = 'ITEM NAME', -- Put here what Item is used for full vehicle repair (Ex. 'ITEM NAME' or false to disable)
time = 10000, -- 10 seconds (Vehicle full repair progress bar time)
},
Engine = {
item = 'ITEM NAME', -- Put here what Item is used for repairing the engine (Ex. 'ITEM NAME' or false to disable)
time = 10000, -- 10 seconds (Engine repair progress bar time)
},
Clean = {
item = 'ITEM NAME', -- Put here what Item is used for cleaning vehicle (Ex. 'ITEM NAME' or false to disable)
time = 15000, -- 15 seconds (Cleaning vehicle progress bar time)
},
Tire = {
item = 'ITEM NAME', -- Put here what Item is used to change vehicle tire smoke (Ex. 'ITEM NAME' or false to disable)
time = 10000, -- 10 seconds (Tire Smoke modification progress bar time)
},
Neon = {
item = 'ITEM NAME', -- Put here what Item is used to change vehicle neons (Ex. 'ITEM NAME' or false to disable)
time = 10000, -- 10 seconds (Neons application progress bar time)
},
Headlight = {
item = 'ITEM NAME', -- Put here what Item is used to change vehicle headlights (Ex. 'ITEM NAME' or false to disable)
time = 10000, -- 10 seconds (Xenon application progress bar time)
},
Interior = {
item = 'interior', -- Put here what Item is used to change vehicle Interior (Ex. 'ITEM NAME' or false to disable)
},
Exterior = {
item = 'exterior', -- Put here what Item is used to change vehicle Exterior (Ex. 'ITEM NAME' or false to disable)
},
Maintenance = {
BreakChance = 50, -- What is the probability of a part breaking while the vehicle need maintenance?
ReductionThreshold = 10, -- What is the value that will be divided by Config.Utils.Maintenance.Distance?
DamagePercentage = 5, -- What is the percentage that a part suffers from wear when the split of Config.Utils.Maintenance.ReductionThreshold with Config.Utils.Maintenance.Distance occurs?
-- In other words, if Config.Utils.Maintenance.ReductionThreshold is 10 and Config.Utils.Maintenance.Distance is 100, it means that every 100/10, 5% will be removed from each Config.Utils.Maintenance.Parts.
Distance = 3000, -- How many Unit ('Km' or 'Mi') will the vehicle will go to maintenance? (Eg. if Distance = 1000 at every 1000 Unit ('Km' or 'Mi') the vehicle will have to go to maintenance)
Time = 20000, -- 20 seconds (Maintenance progress bar time)
Parts = {
-- You can edit all of this pre-configured parts to your likings
}
}
}
Config.EngineBoneBlacklist = {
-- ['VEHICLE NAME'] = true or false, true is Blacklisted, false is not Blacklisted (You just need to add the vehicles that you want to Blacklist)
}
Config.Colours = {
-- You can change all Colours label and add new ones for every type
},
Config.PaintLocations = {
-- You can add here your boss menu locations for every job
}
Config.BossMenus = {
-- You can add here your boss menu locations for every job
}
Config.Crafts = {
-- You can add here your crafts locations and blips for every job
}
Config.Garages = {
-- You can add here your garages locations and blips for every job
}
Config.Shops = {
-- You can add here your shops locations and blips
}
Config.Items = {
-- DON'T TOUCH HERE UNLESS TO CHANGE ITEM AND/OR PROP, NEVER CHANGE LEVEL UNLESS YOU KNOW WHAT YOU ARE DOING!!!!
Engine = {
-- { item = 'ITEM NAME', level = -1, prop = 'prop_car_engine_01' },
},
Transmission = {
-- { item = 'ITEM NAME', level = -1, prop = 'hei_prop_heist_box' },
},
Turbo = {
-- { item = 'ITEM NAME', level = 0, prop = 'imp_prop_impexp_engine_part_01a' },
},
Brake = {
-- { item = 'ITEM NAME', level = -1, prop = 'imp_prop_impexp_brake_caliper_01a' },
},
Suspension = {
-- { item = 'ITEM NAME', level = -1, prop = 'hei_prop_heist_box' },
},
Armor = {
-- { item = 'ITEM NAME', level = -1, prop = 'imp_prop_impexp_car_door_02a' },
},
WindowTint = {
-- { item = 'ITEM NAME', level = -1, prop = 'hei_prop_heist_box', label = 'MODIFICATION LABEL' },
},
Plate = {
-- { item = 'ITEM NAME', level = -1, prop = 'hei_prop_heist_box', label = 'MODIFICATION LABEL' },
},
}
Config.propOffsets = {
-- Add here all props that you are using and adjust the prop location and/or rotation individually
}
Last updated