Players with the mechanic job can attach vehicles to "plates" and repair body/engine. This also includes a stash, job vehicles and a clock in/out location
Preview
Displays vehicle heath
Menu for mechanics to work on cars
Displays vehicle health in chat
Configuration
General
Locations
Vehicle parts
Vehicle part damage
Commands
Only players with citizenid's found in the config can use these commands
/setmechanic - Hire a player as a mechanic
/firemechanic - Remove a player as a mechanic
/setvehiclestatus - Modify the vehicle part damage level
Config.MaxStatusValues = { -- the maximum health of the given part
["engine"] = 1000.0,
["body"] = 1000.0,
["radiator"] = 100,
["axle"] = 100,
["brakes"] = 100,
["clutch"] = 100,
["fuel"] = 100,
}
Config.ValuesLabels = { -- the label of the given part in the repair menu
["engine"] = "Motor",
["body"] = "Body",
["radiator"] = "Radiator",
["axle"] = "Drive Shaft",
["brakes"] = "Brakes",
["clutch"] = "Clutch",
["fuel"] = "Fuel Tank",
}
Config.RepairCost = { -- the item that is needed to repair the given part
["body"] = "plastic",
["radiator"] = "plastic",
["axle"] = "steel",
["brakes"] = "iron",
["clutch"] = "aluminum",
["fuel"] = "plastic",
}
Config.RepairCostAmount = { -- the item and amount that is need to repair a part
["engine"] = {
item = "metalscrap",
costs = 2,
},
["body"] = {
item = "plastic",
costs = 3,
},
["radiator"] = {
item = "steel",
costs = 5,
},
["axle"] = {
item = "aluminum",
costs = 7,
},
["brakes"] = {
item = "copper",
costs = 5,
},
["clutch"] = {
item = "copper",
costs = 6,
},
["fuel"] = {
item = "plastic",
costs = 5,
},
}
Config.Damages = { -- These are the menu labels for the respective part
["radiator"] = "Radiator",
["axle"] = "Drive Shaft",
["brakes"] = "Brakes",
["clutch"] = "Clutch",
["fuel"] = "Fuel Tank",
}
Config.MinimalMetersForDamage = { -- vehicle driving distance range
[1] = {
min = 8000, -- minimum range for damage to occur
max = 12000, -- maximum range for damage to occur
multiplier = {
min = 1, -- minimum damage multiplier
max = 8, -- maximum damage multiplier
}
},
[2] = {
min = 12000,
max = 16000,
multiplier = {
min = 8,
max = 16,
}
},
[3] = {
min = 12000,
max = 16000,
multiplier = {
min = 16,
max = 24,
}
},
}