forked from Simnation/Main
300 lines
No EOL
14 KiB
Lua
300 lines
No EOL
14 KiB
Lua
Config = {}
|
|
|
|
-- Integrations (recommended to leave as "auto")
|
|
Config.Framework = "auto" -- or "QBCore", "Qbox", "ESX"
|
|
Config.Inventory = "auto" -- or "ox_inventory", "qb-inventory", "esx_inventory", "codem-inventory", "qs-inventory"
|
|
Config.Notifications = "auto" -- or "default", "ox_lib", "ps-ui", "okokNotify", "nox_notify"
|
|
Config.ProgressBar = "auto" -- or "ox-circle", "ox-bar", "qb"
|
|
Config.SkillCheck = "auto" -- or "ox", "qb"
|
|
Config.DrawText = "auto" -- or "jg-textui", "ox_lib", "okokTextUI", "ps-ui", "qb"
|
|
Config.SocietyBanking = "auto" -- or "okokBanking", "fd_banking", "Renewed-Banking", "tgg-banking", "qb-banking", "qb-management", "esx_addonaccount"
|
|
|
|
-- Localisation
|
|
Config.Locale = "de"
|
|
Config.NumberAndDateFormat = "en-US"
|
|
Config.Currency = "USD"
|
|
|
|
-- Set to false to use built-in job system
|
|
Config.UseFrameworkJobs = false
|
|
|
|
-- Mechanic Tablet
|
|
Config.UseTabletCommand = "tablet" -- set to false to disable command
|
|
Config.TabletConnectionMaxDistance = 4.0
|
|
|
|
-- Shops
|
|
Config.Target = "ox_target" -- (shops/stashes only) "qb-target" or "ox_target"
|
|
Config.UseSocietyFund = true -- set to false to use player balance
|
|
Config.PlayerBalance = "bank" -- or "bank" or "cash"
|
|
|
|
-- Skill Bars
|
|
Config.UseSkillbars = true -- set to false to use progress bars instead of skill bars for installations
|
|
Config.ProgressBarDuration = 150000 -- if not using skill bars, this is the progress bar duration in ms (10000 = 10 seconds)
|
|
Config.MaximumSkillCheckAttempts = 3 -- How many times the player can attempt a skill check before the skill check fails
|
|
Config.SkillCheckDifficulty = { "easy", "easy", "easy", "easy", "easy" } -- for ox only
|
|
Config.SkillCheckInputs = { "w" } -- for ox only
|
|
|
|
-- Servicing
|
|
Config.EnableVehicleServicing = true
|
|
Config.ServiceRequiredThreshold = 20 -- [%] if any of the servicable parts hit this %, it will flag that the vehicle needs servicing
|
|
Config.ServicingBlacklist = {
|
|
"police", "police2" -- Vehicles that are excluded from servicing damage
|
|
}
|
|
|
|
-- Nitrous
|
|
Config.NitrousScreenEffects = true
|
|
Config.NitrousRearLightTrails = true -- Only really visible at night
|
|
Config.NitrousPowerIncreaseMult = 2.0
|
|
Config.NitrousDefaultKeyMapping = "RMENU"
|
|
Config.NitrousMaxBottlesPerVehicle = 3 -- The UI can't really handle more than 7, more than that would be unrealistic anyway
|
|
Config.NitrousBottleDuration = 10 -- [in seconds] How long a nitrous tank lasts
|
|
Config.NitrousBottleCooldown = 5 -- [in seconds] How long until player can start using the next bottle
|
|
Config.NitrousPurgeDrainRate = 0.1 -- purging drains bottle only 10% as fast as actually boosting - set to 1 to drain at the same rate
|
|
|
|
-- Stancing
|
|
Config.StanceMinSuspensionHeight = -0.3
|
|
Config.StanceMaxSuspensionHeight = 0.3
|
|
Config.StanceMinCamber = 0.0
|
|
Config.StanceMaxCamber = 0.5
|
|
Config.StanceMinTrackWidth = 0.5
|
|
Config.StanceMaxTrackWidth = 1.25
|
|
Config.StanceNearbyVehiclesFreqMs = 500
|
|
|
|
-- Repairs
|
|
Config.AllowFixingAtOwnedMechanicsIfNoOneOnDuty = false
|
|
Config.DuctTapeMinimumEngineHealth = 100.0
|
|
Config.DuctTapeEngineHealthIncrease = 150.0
|
|
|
|
-- Tuning
|
|
Config.TuningGiveInstalledItemBackOnRemoval = false
|
|
|
|
-- Locations
|
|
Config.UseCarLiftPrompt = "[E] Schalter"
|
|
Config.UseCarLiftKey = 38
|
|
Config.CustomiseVehiclePrompt = "[E] KFZ Tuning"
|
|
Config.CustomiseVehicleKey = 38
|
|
|
|
-- Update vehicle props whenever they are changed [probably should not touch]
|
|
-- You can set to false to leave saving any usual props vehicle changes such as
|
|
-- GTA performance, cosmetic, colours, wheels, etc to the garage or other scripts
|
|
-- that persist the props data to the database. Additional data from this script,
|
|
-- such as engine swaps, servicing etc is not affected as it's saved differently
|
|
Config.UpdatePropsOnChange = true
|
|
|
|
-- Stops vehicles from immediately going to redline, for a slightly more realistic feel and
|
|
-- reduced liklihood of wheelspin. Can make vehicle launch (slightly) slower.
|
|
-- No effect on electric vehicles!
|
|
-- May not work immediately for all vehicles; see: https://docs.jgscripts.com/mechanic/manual-transmissions-and-smooth-first-gear#smooth-first-gear
|
|
Config.SmoothFirstGear = false
|
|
|
|
-- If using a manual gearbox, show a notification with key binds when high RPMs
|
|
-- have been detected for too long
|
|
Config.ManualHighRPMNotifications = true
|
|
|
|
-- Misc
|
|
Config.UniqueBlips = true
|
|
Config.ModsPricesAsPercentageOfVehicleValue = true -- Enable pricing tuning items as % of vehicle value - it tries jg-dealerships, then QBShared, then the vehicles meta file automagically for pricing data
|
|
Config.AdminsHaveEmployeePermissions = true -- admins can use tablet & interact with mechanics like an owner
|
|
Config.MechanicEmployeesCanSelfServiceMods = false -- set to true to allow mechanic employees to bypass the "place order" system at their own mechanic
|
|
Config.FullRepairAdminCommand = "vfix"
|
|
Config.MechanicAdminCommand = "mechanicadmin"
|
|
Config.ChangePlateDuringPreview = false
|
|
Config.RequireManagementForOrderDeletion = false
|
|
Config.UseCustomNamesInTuningMenu = false
|
|
|
|
-- Mechanic Locations
|
|
Config.MechanicLocations = {
|
|
bennys = {
|
|
type = "self-service",
|
|
logo = "bennys.png", -- logos go in /logos
|
|
locations = {
|
|
{
|
|
coords = vector3(-211.55, -1323.89, 30.89),
|
|
size = 8.0,
|
|
showBlip = false,
|
|
},
|
|
{
|
|
coords = vector3(1707.73, 3712.24, 34.37),
|
|
size = 8.0,
|
|
showBlip = false,
|
|
},
|
|
},
|
|
blip = {
|
|
id = 446,
|
|
color = 47,
|
|
scale = 0.7
|
|
},
|
|
mods = {
|
|
repair = { enabled = true, price = 100, percentVehVal = 0.8 },
|
|
performance = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
|
|
cosmetics = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
|
|
stance = { enabled = true, price = 500, percentVehVal = 0.01 },
|
|
respray = { enabled = true, price = 500, percentVehVal = 0.01 },
|
|
wheels = { enabled = true, price = 500, percentVehVal = 0.01, priceMult = 0.1 },
|
|
neonLights = { enabled = true, price = 500, percentVehVal = 0.01 },
|
|
headlights = { enabled = true, price = 500, percentVehVal = 0.01 },
|
|
tyreSmoke = { enabled = true, price = 500, percentVehVal = 0.01 },
|
|
bulletproofTyres = { enabled = false, price = 500, percentVehVal = 0.01 },
|
|
extras = { enabled = true, price = 500, percentVehVal = 0.01 }
|
|
},
|
|
},
|
|
Petrol_Head = {
|
|
type = "owned",
|
|
job = "mechanic",
|
|
jobManagementRanks = {10},
|
|
logo = "ls_customs.png",
|
|
commission = 0, -- %, 10 = 10%
|
|
locations = {
|
|
{
|
|
coords = vector3(-223.59, -1330.06, 30.89),
|
|
size = 6.5,
|
|
showBlip = false,
|
|
},
|
|
{
|
|
coords = vector3(-222.81, -1323.9, 30.89),
|
|
size = 3.0,
|
|
showBlip = false,
|
|
employeeOnly = true,
|
|
}
|
|
},
|
|
blip = {
|
|
id = 446,
|
|
color = 47,
|
|
scale = 0.7
|
|
},
|
|
mods = {
|
|
repair = { enabled = true, price = 2000, percentVehVal = 0.01 },
|
|
performance = { enabled = true, price = 1600, percentVehVal = 0.01, priceMult = 0.1 },
|
|
cosmetics = { enabled = true, price = 1000, percentVehVal = 0.01, priceMult = 0.1 },
|
|
stance = { enabled = true, price = 1000, percentVehVal = 0.01 },
|
|
respray = { enabled = true, price = 1500, percentVehVal = 0.01 },
|
|
wheels = { enabled = true, price = 0, percentVehVal = 0.01, priceMult = 0.1 },
|
|
neonLights = { enabled = true, price = 0, percentVehVal = 0.01 },
|
|
headlights = { enabled = true, price = 600, percentVehVal = 0.01 },
|
|
tyreSmoke = { enabled = true, price = 400, percentVehVal = 0.01 },
|
|
bulletproofTyres = { enabled = true, price = 0, percentVehVal = 0.01 },
|
|
extras = { enabled = true, price = 0, percentVehVal = 0.01 }
|
|
},
|
|
tuning = {
|
|
engineSwaps = { enabled = true, requiresItem = true },
|
|
drivetrains = { enabled = true, requiresItem = true },
|
|
turbocharging = { enabled = true, requiresItem = true },
|
|
tyres = { enabled = true, requiresItem = true },
|
|
brakes = { enabled = true, requiresItem = true },
|
|
driftTuning = { enabled = true, requiresItem = true },
|
|
gearboxes = { enabled = true, requiresItem = true },
|
|
},
|
|
carLifts = { -- only usable by employees
|
|
vector4(-945.9022, -2037.6864, 9.0510, 315.0444),
|
|
vector4(-950.3130, -2033.2795, 9.0510, 314.9926),
|
|
vector4(-964.3592, -2036.7500, 9.0510, 45.0713),
|
|
vector4(-969.3700, -2041.5700, 9.0510, 45.0713),
|
|
vector4(-974.2609, -2046.7162, 9.0510, 45.0713)
|
|
|
|
},
|
|
shops = {
|
|
{
|
|
name = "Service Schrank",
|
|
coords = vector3(-219.04, -1319.94, 30.89),
|
|
size = 2.0,
|
|
usePed = false,
|
|
pedModel = "s_m_m_lathandy_01",
|
|
marker = { id = 21, size = { x = 0.3, y = 0.3, z = 0.3 }, color = { r = 255, g = 255, b = 255, a = 120 }, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0 },
|
|
items = {
|
|
{ name = "engine_oil", label = "Engine Oil", price = 0 },
|
|
{ name = "tyre_replacement", label = "Tyre Replacement", price = 0 },
|
|
{ name = "clutch_replacement", label = "Clutch Replacement", price = 0 },
|
|
{ name = "air_filter", label = "Air Filter", price = 0 },
|
|
{ name = "spark_plug", label = "Spark Plug", price = 0 },
|
|
{ name = "suspension_parts", label = "Suspension Parts", price = 0 },
|
|
{ name = "brakepad_replacement", label = "Brakepad Replacement", price = 0 },
|
|
},
|
|
},
|
|
{
|
|
name = "Tuning Schrank",
|
|
coords = vector3(-197.2, -1314.88, 31.09),
|
|
size = 2.0,
|
|
usePed = false,
|
|
pedModel = "s_m_m_lathandy_01",
|
|
marker = { id = 21, size = { x = 0.3, y = 0.3, z = 0.3 }, color = { r = 255, g = 255, b = 255, a = 120 }, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0 },
|
|
items = {
|
|
{ name = "lockpick", label = "Dietrich", price = 0 },
|
|
{ name = "turbocharger", label = "Turbo Charger", price = 0 },
|
|
{ name = "i4_engine", label = "Motor i4", price = 0 },
|
|
{ name = "v6_engine", label = "Motor v6", price = 0 },
|
|
{ name = "v8_engine", label = "Motor v8", price = 0 },
|
|
{ name = "v12_engine", label = "Motor v12", price = 0 },
|
|
{ name = "ev_motor", label = "Motor electronic", price = 0 },
|
|
{ name = "ev_battery", label = "Battery electronic", price = 0 },
|
|
{ name = "ev_coolant", label = "Kühlung electronic", price = 0 },
|
|
{ name = "awd_drivetrain", label = "AWD", price = 0 },
|
|
{ name = "rwd_drivetrain", label = "RWD", price = 0 },
|
|
{ name = "fwd_drivetrain", label = "FWD", price = 0 },
|
|
{ name = "slick_tyres", label = "Reifen01", price = 0 },
|
|
{ name = "semi_slick_tyres", label = "Reifen02", price = 0 },
|
|
{ name = "offroad_tyres", label = "Reifen03", price = 0 },
|
|
{ name = "ceramic_brakes", label = "Ceramic Bremsen", price = 0 },
|
|
{ name = "drift_tuning_kit", label = "Drift Tuning", price = 0 },
|
|
{ name = "vehicle_wheels", label = "Felgen", price = 0 },
|
|
{ name = "tyre_smoke_kit", label = "Reifenqulam Kit", price = 0 },
|
|
{ name = "bulletproof_tyres", label = "Kugelsichere Reifen", price = 0 },
|
|
{ name = "respray_kit", label = "Lack Set", price = 0 },
|
|
{ name = "cosmetic_part", label = "Cosmetic Part", price = 0 },
|
|
{ name = "stancing_kit", label = "Stance Kit", price = 0 },
|
|
{ name = "lighting_controller", label = "Controller", price = 0 },
|
|
{ name = "empty_nitrous_bottle", label = "NOS leer", price = 0 },
|
|
{ name = "nitrous_bottle", label = "NOS voll", price = 0 },
|
|
{ name = "nitrous_install_kit", label = "NOS Kit", price = 0 },
|
|
{ name = "performance_part", label = "Pervormance Kit", price = 0 },
|
|
{ name = "extras_kit", label = "Extra Kit", price = 0 },
|
|
{ name = "manual_gearbox", label = "Umbau auf Schalter", price = 0 },
|
|
{ name = "repair_kit", label = "Werkzeug-Koffer", price = 0 },
|
|
{ name = "duct_tape", label = "Panzertape", price = 0 },
|
|
{ name = "cleaning_kit", label = "Putzlappen", price = 0 },
|
|
},
|
|
}
|
|
},
|
|
stashes = {
|
|
{
|
|
name = "Mechanic Lager",
|
|
coords = vector3(-936.8943, -2034.1854, 9.0510),
|
|
size = 2.0,
|
|
usePed = false,
|
|
pedModel = "s_m_m_lathandy_01",
|
|
marker = { id = 21, size = { x = 0.3, y = 0.3, z = 0.3 }, color = { r = 255, g = 255, b = 255, a = 120 }, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0 },
|
|
slots = 30,
|
|
weight = 50000,
|
|
},
|
|
{
|
|
name = "Chief Lager",
|
|
coords = vector3(-918.9224, -2043.8586, 14.4521),
|
|
size = 2.0,
|
|
usePed = false,
|
|
pedModel = "s_m_m_lathandy_01",
|
|
marker = { id = 21, size = { x = 0.3, y = 0.3, z = 0.3 }, color = { r = 255, g = 255, b = 255, a = 120 }, bobUpAndDown = 0, faceCamera = 0, rotate = 1, drawOnEnts = 0 },
|
|
slots = 6,
|
|
weight = 25000,
|
|
},
|
|
}
|
|
}
|
|
}
|
|
|
|
-- Add electric vehicles to disable combustion engine features
|
|
-----------------------------------------------------------------------
|
|
-- PLEASE NOTE: In b3258 (Bottom Dollar Bounties) and newer, electric
|
|
-- vehicles are detected automatically, so this list is not used!
|
|
Config.ElectricVehicles = {
|
|
"Airtug", "buffalo5", "caddy",
|
|
"Caddy2", "caddy3", "coureur",
|
|
"cyclone", "cyclone2", "imorgon",
|
|
"inductor", "iwagen", "khamelion",
|
|
"metrotrain", "minitank", "neon",
|
|
"omnisegt", "powersurge", "raiden",
|
|
"rcbandito", "surge", "tezeract",
|
|
"virtue", "vivanite", "voltic",
|
|
"voltic2",
|
|
}
|
|
|
|
-- Nerd options
|
|
Config.DisableSound = false
|
|
Config.AutoRunSQL = true
|
|
Config.Debug = false |