Config File
🌟 Our amazing Mechanic script!
Config File
Config = {}
Config.Debug = false
Config.Language = 'en' -- Just 'pt' or 'en' for now
Config.Utils = {
RunSQL = false, -- 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 = true, -- 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 = 'admin', -- 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
},
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
Currency = '€', -- € or $ or another, just put your currency simbol here
DiagnosticTool = 'diagnostictool', -- Put here what Item is used for the diagnostic tool (Ex. 'ITEM NAME' or false to disable)
UseOwnerSystem = true, -- 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
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)
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
},
},
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?
Distance = 5, -- 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.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
}
Config.Colours = {
-- You can change all Colours label and add new ones for every type
},
Last updated