Configuration
This section includes all configurable files for the selected script. Most settings are configured automatically, but each config.lua file contains a header comment explaining the purpose and usage of every configuration type. Be sure to read the header of each file carefully to fully understand how to customize and adapt the system for QBCORE, ESX, or standalone environments, ensuring seamless integration with your server.
qs-multijob/config/config.lua
Config = {}
Config.Framework = "esx" -- esx or qb
Config.Jobs = {
police = {
type = "whitelisted",
label = "Police",
icon = "bx bx-shield-alt-2",
badges = {
{ name = "Special Operations", description = "Elite tactical unit with advanced training", image = "medal-1" },
{ name = "Elite Unit", description = "Highly trained members of the police force", image = "medal-2" },
{ name = "Firearms Instructor", description = "Responsible for weapons training", image = "medal-3" },
{ name = "Criminal Investigator", description = "Specializes in investigating crimes", image = "medal-4" }
}
},
ambulance = {
type = "whitelisted",
label = "EMS",
icon = "bx bx-pulse",
badges = {
{ name = "Field Medic", description = "Provides emergency care on site", image = "medal-5" },
{ name = "Rescue Specialist", description = "Trained in technical rescue operations", image = "medal-6" },
{ name = "Trauma Expert", description = "Specialist in trauma treatment", image = "medal-7" },
{ name = "Rapid Response", description = "Responds quickly to critical incidents", image = "medal-8" }
}
},
taxi = { type = "civilian", label = "Taxi", icon = "bx bx-car" },
miner = { type = "civilian", label = "Miner", icon = "bx bx-hard-hat" },
lumberjack = { type = "civilian", label = "Lumberjack", icon = "bx bx-map" },
mechanic = { type = "civilian", label = "Mechanic", icon = "bx bx-cog" },
bus_driver = { type = "civilian", label = "Bus driver", icon = "bx bx-hard-hat" },
nespaper_delivery = { type = "civilian", label = "Newspaper delivery", icon = "bx bx-hard-hat" },
truck_driver = { type = "civilian", label = "Truck driver", icon = "bx bx-hard-hat" },
garbage_collector = { type = "civilian", label = "Garbage collector", icon = "bx bx-hard-hat" },
dog_walker = { type = "civilian", label = "Dog walker", icon = "bx bx-hard-hat" },
hunter = { type = "civilian", label = "Hunter", icon = "bx bx-hard-hat" }
}
Config.Translations = {
unemployed = "Unemployed",
jobsManagement = "Jobs Management",
rank = "Rank:",
serviceTime = "Service time:",
startShift = "Start shift",
endShift = "End shift",
selectJob = "Select job",
h = "h",
m = "m",
s = "s",
errorMessage = "You have reached the maximum number of jobs you can display. Please remove one to show the new job"
}
Config.BlackListedJobs = { -- Jobs you don't want to be displayed in the multijob menu
-- ['job'] = true,
['prisoner'] = true,
}
Config.MaxJobs = 5 -- Max amount of jobs a player can have at the same time
Config.Position = "right" -- Right or left
Config.Command = "job" -- Command to open de menu. If you don't want to open it with command use nil.
Config.Key = 166 -- Key to open the menu. 166 => F5. Use nil if you don't want a key to open the menu. Check keys in https://docs.fivem.net/docs/game-references/controls/
function SendTextMessage(msg, type)
if type == 'info' then
-- VANILLA NOTIFY
-- SetNotificationTextEntry('STRING')
-- AddTextComponentString(msg)
-- DrawNotification(0, 1)
-- CUSTOM NOTIFY
-- exports["Notify"]:Alert(msg, type)
end
if type == 'error' then
-- VANILLA NOTIFY
SetNotificationTextEntry('STRING')
AddTextComponentString(msg)
DrawNotification(0, 1)
-- CUSTOM NOTIFY
-- exports["Notify"]:Alert(msg, type)
end
if type == 'success' then
-- VANILLA NOTIFY
-- SetNotificationTextEntry('STRING')
-- AddTextComponentString(msg)
-- DrawNotification(0, 1)
-- CUSTOM NOTIFY
-- exports["Notify"]:Alert(msg, type)
end
end
Config.Commands = {
badge = "badge",
removeBadge = "removebadge"
}