Config

Preview of the shared/config.lua

Config = {}

Config.Debug = true -- boolean | true enables debug prints, false disables.
Config.SyncToDatabase = 1  -- time in minutes for data from server file to update to database

Config.Items = {
	['mods'] = {
		[1] = {name = 'mod_respray', label = 'Respray', id = 'respray', price = 500, icon = 'https://i.ibb.co/T0q9bgj/mod-respray.png'}, -- respray (primary, secondary, pealesceant), wheel color, interior color, dashboard color
		[2] = {name = 'mod_bodyworks', label = 'Body Works', id = 'bodyworks', price = 1250, icon = 'https://i.ibb.co/YZkqQRj/mod-bodyworks.png'}, -- spoiler, bumpers (front + rear), skirts, exhaust, hood, fenders, roof
		[3] = {name = 'mod_chassis', label = 'Chassis Upgrades', id = 'chassis', price = 700, icon = 'https://i.ibb.co/1XGXthM/mod-chassis.png'}, -- roll cage, arch cover, aerials, trim b, fuel tank
		[4] = {name = 'mod_enginebay', label = 'Engine Bay Upgrades', id = 'enginebay', price = 500, icon = 'https://i.ibb.co/ngv65rV/mod-enginebay.png'}, -- engine block, air filters, strut brace
		[5] = {name = 'mod_exterior', label = 'Exterior Cosmetics', id = 'exterior', price = 600, icon = 'https://i.ibb.co/wz2s9mG/mod-exterior.png'}, -- grill, horn, plate holder, vanity plate, hydro, left door, right door, lightbar, license plate, window tints
		[6] = {name = 'mod_interior', label = 'Interior Cosmetics', id = 'interior', price = 500, icon = 'https://i.ibb.co/ZKZS3mP/mod-interior.png'}, -- trim a, ornaments, dashboard, gauges, door speakers, seats, steering wheel, shifter leaver, plague, speaker, trunk
		[7] = {name = 'mod_lights', label = 'Vehicle Lights', id = 'lights', price = 300, icon = 'https://i.ibb.co/P56HBBg/mod-lights.png'}, -- xenon kit, neon kit
		[8] = {name = 'mod_wheels', label = 'Wheels', id = 'wheels', price = 900, icon = 'https://i.ibb.co/8BbyF7y/mod-wheels.png'}, -- wheels, wheel rear, wheel front, wheel color, tyre smoke, bulletproof tyres
		[9] = {name = 'mod_engine', label = 'Engine Upg. Kit', id = 'performance', price = 2000, modName = 'modEngine', icon = 'https://i.ibb.co/MgPCg06/mod-engine.png'}, -- engine upgrades
		[10] = {name = 'mod_brakes', label = 'Brakes Upg. Kit', id = 'performance', price = 1300, modName = 'modBrakes', icon = 'https://i.ibb.co/wKxczkS/mod-brakes.png'}, -- brakes upgrades
		[11] = {name = 'mod_transmission', label = 'Transmission Upg. Kit', id = 'performance', price = 1800, modName = 'modTransmission', icon = 'https://i.ibb.co/P1NvFBf/mod-transmission.png'}, -- transmission upgrades
		[12] = {name = 'mod_suspension', label = 'Suspension Upg. Kit', id = 'performance', price = 1500, modName = 'modSuspension', icon = 'https://i.ibb.co/FYwfm4y/mod-suspension.png'}, -- suspension upgrades
		[13] = {name = 'mod_armor', label = 'Armor Upg. Kit', id = 'performance', price = 3600, modName = 'modArmor', icon = 'https://i.ibb.co/Fby20CQ/mod-armor.png'}, -- armor upgrades
		[14] = {name = 'mod_turbo', label = 'Turbo Upg. Kit', id = 'performance', price = 1400, modName = 'modTurbo', icon = 'https://i.ibb.co/12BpDZY/mod-turbo.png'}, -- turbo upgrades
	},
	['kits'] = { 
		[1] = {name = 'tunertablet', label = 'Tuner Tablet', icon = 'https://i.ibb.co/yq99yjS/tunertablet.png'},
		[2] = {name = 'tuner_repairkit', label = 'Tuner Repair Kit', icon = 'https://i.ibb.co/G0L2fcw/tuner-repairkit.png'},
		--[3] = {name = 't1ger_drifttires', label = 'Drift Tires', icon = 'https://i.ibb.co/qkTWyDc/t1ger-drifttires.png'},
		--[4] = {name = 't1ger_stocktires', label = 'Stock Tires', icon = 'https://i.ibb.co/x81sL5m/t1ger-stocktires.png'},
		--[5] = {name = 't1ger_bullettires', label = 'Bullet Proof Tires', icon = 'https://i.ibb.co/YRYbK5N/t1ger-bullettires.png'},
	},
	['materials'] = {
		[1] = {name = 'scrap_metal', label = 'Scrap Metal'},
		[2] = {name = 'steel', label = 'Steel'},
		[3] = {name = 'aluminium', label = 'Aluminium'},
		[4] = {name = 'plastic', label = 'Plastic'},
		[5] = {name = 'rubber', label = 'Rubber'},
		[6] = {name = 'electric_scrap', label = 'Electric Scrap'},
		[7] = {name = 'glass', label = 'Glass'},
		[8] = {name = 'copper', label = 'Copper'},
		[9] = {name = 'carbon_fiber', label = 'Carbon Fiber'},
		[10] = {name = 'brass', label = 'Brass'},
		[11] = {name = 'synthetic_oil', label = 'Synthetic Oil'},
		[12] = {name = 'acid', label = 'Acid'},
	},
}

Config.AdminMenu = {
	Command = {enable = true, string = 'admintuner'}, -- enable/disable command, set command string.
	Keybind = {enable = true, defaultMapping = 'F10'} -- enable/disable keybind, set default mapping (players edit button in-game inside GTA Settings)
}

Config.ShopCreator = {
	UseSocietyAccounts = true, -- set true to use qb-banking (must update to latest) or esx_addonaccounts instead of custom account column from the database table.
	Blip = {input = true, sprite = 446, display = 4, scale = 0.75, color = 5}, -- if input = true, set sprite/color in-game, else define settings here to apply for created shop
	Grades = { -- default job grades that are created, once a shop is being created
		[1] = {grade = 0, name = 'recruit', label = 'Recruit', salary = 50},
		[2] = {grade = 1, name = 'employee', label = 'Employee', salary = 75},
		[3] = {grade = 2, name = 'boss', label = 'Boss', salary = 100, isboss = true}
		-- make sure boss grade is the very last one and has the 'isboss = true' as the only one!
	},
	DefaultDuty = true, -- QB CORE ONLY - set default duty on qb core jobs (doesnt matter for esx)
	OffDutyPay = false, -- QB CORE ONLY - set off duty payment on qb core jobs (doesnt matter for esx)
}

Config.RecruitMember = {
	ShowFullName = true, -- set to false to only show player server id (prevent meta-gaming)
	Distance = 10.0 -- distance to players in area to include.
}

Config.Markers = {
	['duty'] = {
		enable = true, -- set to false to completely disable duty marker.
		interact = {title = Lang['title_duty'], keybind = 38, dist = 1.2, drawDist = 5.0, textUi = Lang['textui_duty'], icon = 'toggle-on', position = 'right-center', style = {borderRadius = 0, backgroundColor = '#48BB78', color = 'white'}},
		blip = {sprite = 280, display = 4, scale = 0.65, color = 0}, -- blip settings
		displayAlways = true, -- if true, duty marker will always be visible for players that are hired in the shop but have taken another job, e.g. taxi. If false, this duty marker will go away as soon as the job changes and admin/multijob must help with giving back the job.
	},
	['boss'] = {
		enable = true, -- set to false to completely disable boss marker.
		interact = {title = Lang['title_boss'], keybind = 38, dist = 1.2, drawDist = 5.0, textUi = Lang['textui_boss'], icon = 'crown', position = 'right-center', style = {borderRadius = 0, backgroundColor = '#48BB78', color = 'white'}},
		blip = {sprite = 164, display = 4, scale = 0.65, color = 0}, -- blip settings
	},
	['garage'] = {
		enable = true, -- set to false to completely disable garage marker.
		interact = {title = Lang['title_garage'], keybind = 38, dist = 1.2, drawDist = 7.0, textUi = Lang['textui_garage'], icon = 'square-parking', position = 'right-center', style = {borderRadius = 0, backgroundColor = '#48BB78', color = 'white'}},
		blip = {sprite = 357, display = 4, scale = 0.65, color = 0}, -- blip settings
		useBuiltInGarage = true, -- otherwise change in functions of tuning system
	},
	['storage'] = {
		enable = true, -- set to false to completely disable storage marker.
		interact = {title = Lang['title_storage'], keybind = 38, dist = 1.2, drawDist = 5.0, textUi = Lang['textui_storage'], icon = 'box', position = 'right-center', style = {borderRadius = 0, backgroundColor = '#48BB78', color = 'white'}},
		blip = {sprite = 587, display = 4, scale = 0.65, color = 0}, -- blip settings
		stash = {slots = 50, weight = 100000, maxSlots = 500, maxWeight = 999999}, -- set default stash info in here and max slots/weight for in-game edits.
	},
	['workbench'] = {
		enable = true, -- set to false to completely disable workbench marker.
		interact = {title = Lang['title_workbench'], keybind = 38, dist = 1.2, drawDist = 5.0, textUi = Lang['textui_workbench'], icon = 'screwdriver-wrench', position = 'right-center', style = {borderRadius = 0, backgroundColor = '#48BB78', color = 'white'}},
		blip = {sprite = 566, display = 4, scale = 0.65, color = 0}, -- blip settings
		useBuiltInCrafting = true, -- otherwise change in functions of tuning system
	},
	['laptop'] = { -- marker to order parts etc.
		enable = true, -- set to false to completely disable laptop marker.
		interact = {title = Lang['title_laptop'], keybind = 38, dist = 1.2, drawDist = 5.0, textUi = Lang['textui_laptop'], icon = 'laptop', position = 'right-center', style = {borderRadius = 0, backgroundColor = '#48BB78', color = 'white'}},
		blip = {sprite = 521, display = 4, scale = 0.65, color = 0}, -- blip settings
		itemsToStash = true, -- set to true to send ordered mod items to stash directly.
	},
	['modshop'] = { -- marker to customize/upgrade vehicles
		enable = true, -- set to false to completely disable modshop marker.
		interact = {title = Lang['title_modshop'], keybind = 38, dist = 1.2, drawDist = 7.0, textUi = Lang['textui_modshop'], icon = 'spray-can', position = 'right-center', style = {borderRadius = 0, backgroundColor = '#48BB78', color = 'white'}},
		blip = {sprite = 402, display = 4, scale = 0.65, color = 0}, -- blip settings
		repair = {
			allow = true, -- allow quick repair for $repair.price (below) in modshop marker. Set to false to force customers to go to a mechanic first.
			price = 1000, -- 1000$ to repair vehicle, before installing mods.
			moneyToAccount = true, -- if true, paid fees goes to the shop's account, else the money just disappears. 
		},
		menu = {title = 'Mod Shop', position = 'top-left'}, -- mod shop main menu title and position
		paytoAccount = 20.0, -- 0.0-100.0 decimal value (percentage) of the installed mod's price that goes into the shop's account.
		incentivizedPricing = {
			enable = true, -- set to true to enable incentivized pricing.
			percent = 25 -- percentage to increase the price of mods in the modshop marker menus, to kinda force players to RP with tuners.
		},
	},
}

Config.MarkerTeleport = true -- set to false to disable option in admin menu to TP to marker.
Config.MarkerEdit = true -- set to false to disable option in admin menu to edit marker.
Config.MarkerDefaultRGBA = 'rgba(199, 30, 30, 1)' -- default RGBA color of the marker creator/editor - only change the numbers!!.

Config.Currency = '$' -- string for currency
Config.MenuSoundFrontend = {AudioName = 'NAV_UP_DOWN', AudioRef = 'HUD_FRONTEND_DEFAULT_SOUNDSET'} -- used when browsing mods

Config.ItemBasedMods = {
	PayWithShopAccount = true, -- set to true to pay item based mods from shop account, set to false to pay from tuner player's own bank account.
	CancelInteraction = {Button = 252, String = '[X] Cancel Install'},
	SkillCheck = {Enable = true, Difficulty = {'easy', 'easy', 'easy'}, Inputs = {'w', 'a', 's', 'd'}},
	Target = {Label = 'Install Mod', Icon = 'fa-solid fa-wrench'},

	PreviewControls = {
		Hood = 108, -- NUMPAD 4 // Opens hood during preview with item based mod installations
		Trunk = 110, -- NUMPAD 5 // Opens trunk during preview with item based mod installations
		Doors = 109, -- NUMPAD 6 // Opens all doors (except hood & trunk) during preview with item based mod installations
		Close = 118 -- NUMPAD 9 // Shuts all doors during preview with item based mod installations
	},
	
	StringToRGB = {
		['white'] = {255, 255, 255},
		['red'] =  {246, 75, 60},
		['pink'] = {253, 226, 226},
		['blue'] = {0, 168, 204},
		['yellow'] = {245, 252, 193},
		['green'] = {99, 154, 103},
		['orange'] = {255, 164, 27},
		['brown'] = {156, 85, 24},
		['purple'] =  {190, 121, 223},
		['grey'] = {50, 50, 50},
		['black'] = {0, 0, 0},
		-- you can add more like bronze etc.
	}
}

Config.LaborFee = {
	Enable = true, -- enable/disable adding labor fee on top of the mod installation price (realistic feature)
	Default = 100, -- default labor fee for item based mod installation, else it uses the defined price by the boss
	Min = 10, -- min value for labor fee set by boss in the boss menu
	Max = 1000 -- max value for labor fee set by boss in the boss menu
}

Config.Workbench = {
	Enable = true, -- set to false to disable
	Duration = 2500, -- duration in ms for crafting
	ProgressLabel = 'Crafting %sx %s',
	Anim = {dict = 'mini@repair', name = 'fixing_a_player', blendIn = 8.0, blendOut = -8.0, flag = 49},
	SkillCheck = {enable = true, difficulty = {'easy', 'easy'}, inputs = {'w', 'a', 's', 'd'}},
	Categories = {
		['mods'] = { -- MODS
			label = 'Mods',
			description = 'Mods are used to customize or upgrade vehicles.',
			icon = 'car',
			recipe = {
				[1] = {
					menuTitle = 'Respray',
					icon = 'https://i.ibb.co/T0q9bgj/mod-respray.png',
					itemId = 1,
					materials = {
						['plastic'] = 2,
						['acid'] = 3,
						['synthetic_oil'] = 1,
						['rubber'] = 4
					}
				},
				[2] = {
					menuTitle = 'Body Works',
					icon = 'https://i.ibb.co/YZkqQRj/mod-bodyworks.png',
					itemId = 2,
					materials = {
						['plastic'] = 5,
						['carbon_fiber'] = 2,
						['rubber'] = 1,
						['copper'] = 3
					}
				},
				[3] = {
					menuTitle = 'Chassis Upgrades',
					icon = 'https://i.ibb.co/1XGXthM/mod-chassis.png',
					itemId = 3,
					materials = {
						['steel'] = 3,
						['aluminium'] = 2,
						['rubber'] = 1,
						['copper'] = 4,
						['brass'] = 1
					}
				},
				[4] = {
					menuTitle = 'Engine Bay Upgrades',
					icon = 'https://i.ibb.co/ngv65rV/mod-enginebay.png',
					itemId = 4,
					materials = {
						['steel'] = 2,
						['copper'] = 1,
						['brass'] = 3,
						['scrap_metal'] = 2
					}
				},
				[5] = {
					menuTitle = 'Exterior Cosmetics',
					icon = 'https://i.ibb.co/wz2s9mG/mod-exterior.png',
					itemId = 5,
					materials = {
						['plastic'] = 2,
						['carbon_fiber'] = 1,
						['rubber'] = 3,
						['glass'] = 4,
						['brass'] = 2
					}
				},
				[6] = {
					menuTitle = 'Interior Cosmetics',
					icon = 'https://i.ibb.co/ZKZS3mP/mod-interior.png',
					itemId = 6,
					materials = {
						['plastic'] = 4,
						['carbon_fiber'] = 1,
						['rubber'] = 2,
						['glass'] = 3,
						['brass'] = 1
					}
				},
				[7] = {
					menuTitle = 'Vehicle Lights',
					icon = 'https://i.ibb.co/P56HBBg/mod-lights.png',
					itemId = 7,
					materials = {
						['steel'] = 2,
						['aluminium'] = 1,
						['rubber'] = 3,
						['glass'] = 4,
						['electric_scrap'] = 2
					}
				},
				[8] = {
					menuTitle = 'Wheels Mod',
					icon = 'https://i.ibb.co/8BbyF7y/mod-wheels.png',
					itemId = 8,
					materials = {
						['steel'] = 3,
						['copper'] = 1,
						['aluminium'] = 4,
						['brass'] = 1
					}
				},
				[9] = {
					menuTitle = 'Engine Upg. Kit',
					icon = 'https://i.ibb.co/MgPCg06/mod-engine.png',
					itemId = 9,
					materials = {
						['steel'] = 2,
						['copper'] = 3,
						['carbon_fiber'] = 1,
						['synthetic_oil'] = 4,
						['electric_scrap'] = 2,
						['brass'] = 1
					}
				},
				[10] = {
					menuTitle = 'Brakes Upg. Kit',
					icon = 'https://i.ibb.co/wKxczkS/mod-brakes.png',
					itemId = 10,
					materials = {
						['steel'] = 3,
						['rubber'] = 2,
						['copper'] = 1,
						['brass'] = 4
					}
				},
				[11] = {
					menuTitle = 'Transmission Upg. Kit',
					icon = 'https://i.ibb.co/P1NvFBf/mod-transmission.png',
					itemId = 11,
					materials = {
						['steel'] = 1,
						['aluminium'] = 2,
						['rubber'] = 3,
						['copper'] = 4,
					}
				},
				[12] = {
					menuTitle = 'Suspension Upg. Kit',
					icon = 'https://i.ibb.co/FYwfm4y/mod-suspension.png',
					itemId = 12,
					materials = {
						['steel'] = 3,
						['aluminium'] = 2,
						['rubber'] = 1,
						['brass'] = 4
					}
				},
				[13] = {
					menuTitle = 'Armor Upg. Kit',
					icon = 'https://i.ibb.co/Fby20CQ/mod-armor.png',
					itemId = 13,
					materials = {
						['scrap_metal'] = 4,
						['steel'] = 2,
						['aluminium'] = 1,
						['rubber'] = 3,
						['brass'] = 1
					}
				},
				[14] = {
					menuTitle = 'Turbo Upg. Kit',
					icon = 'https://i.ibb.co/12BpDZY/mod-turbo.png',
					itemId = 14,
					materials = {
						['steel'] = 1,
						['rubber'] = 2,
						['copper'] = 3,
						['scrap_metal'] = 4
					}
				},
			}
		},
		['kits'] = { -- KITS
			label = 'Kits',
			description = 'Kits are used by tuners for custom mods.',
			icon = 'car',
			recipe = {
				[1] = {
					menuTitle = 'Tuner Tablet',
					icon = 'https://i.ibb.co/yq99yjS/tunertablet.png',
					itemId = 1,
					materials = {
						['plastic'] = 3,
						['steel'] = 2,
						['carbon_fiber'] = 1,
						['electric_scrap'] = 5,
					}
				},
				[2] = {
					menuTitle = 'Drift Tires',
					icon = 'https://i.ibb.co/qkTWyDc/t1ger-drifttires.png',
					itemId = 2,
					materials = {
						['rubber'] = 15,
						['synthetic_oil'] = 1,
					}
				},
				[3] = {
					menuTitle = 'Stock Tires',
					icon = 'https://i.ibb.co/x81sL5m/t1ger-stocktires.png',
					itemId = 3,
					materials = {
						['rubber'] = 7,
					}
				},
				[4] = {
					menuTitle = 'Bullet Proof Tires',
					icon = 'https://i.ibb.co/YRYbK5N/t1ger-bullettires.png',
					itemId = 4,
					materials = {
						['rubber'] = 12,
						['carbon_fiber'] = 3,
					}
				},
			},
		},
	}
}

Last updated