Configuration
```lua
Config = {}
--Priority Settings
Config.Framework = "esx" -- esx / qb / oldesx / oldqb
Config.SQL = "oxmysql" -- oxmysql / mysql-async
-- Target / Menu settings
Config.Menu = "ox_lib" -- ox_lib / qb-menu
Config.Target = "ox_target" -- ox_target / qb-target / drawtext (if you are go use drawtext, then setup Config.DrawtextScript)
Config.DrawtextScript = "codem-textui" -- ox_lib / esx / luke / codem-textui / eth-textUi / okokTextUI / drawtext3d
-- Codem-TextUI (https://codem.tebex.io/package/5984937)
Config.CodemTheme = "thema-1" -- Only use if you are using Codem-TextUI
Config.CodemKeyText = "E" -- Only use if you are using Codem-TextUI
-- Commands / KeyMapping Keys
Config.Command = "jobs" -- command for open job menu
Config.OpenJobCenterKeyMapping = 38 -- Key (E)
Config.MappingKey = "F7" -- key mapping for not using command
Config.AdminCommand = "ajobs" -- command for admins menu
-- Multijob Settings
Config.MaxJobs = 3 -- number what every player can have jobs for each character
Config.WhenGetFired = "unemployed" -- setup job what player get when he get fired
Config.OffDutyJob = "unemployed" -- setup job what player get when he go off duty
-- Job Center Settings
Config.JobCenter = {
coords = vector4(224.43559265137, -869.44909667969, 29.492105484009, 269.25897216797),
jobs = {
["farmer"] = { -- this and job_name MUST be same!!
job_name = "farmer",
desc = "For beginners it´s very good job for starting something and grow up!", -- Description about job
salary = 120 -- salary is paycheck what you have need setup on your database, how much mjoney give you
},
["unemployed"] = {
job_name = "unemployed",
desc = "For beginners it´s very good job for starting something and grow up!",
salary = 150
}
}
}
--- Blip settings (coords is setup from job center coords)
Config.EnableBlip = true
Config.Blip = {
Sprite = 685,
Display = 4,
Scale = 1.0,
Colour = 10,
Name = "Job Center"
}
Config.Locale = {
-- Menu
["Multijob_Menu"] = "Mutlijob Menu",
["Nothing_Job_title"] = "You don´t have any job!",
["Nothing_Job_desc"] = "Find some job for you!",
["Job_Desc"] = "Grade: %s / Salary %s",
--Options Menu
["Options_Menu"] = "Options",
["Select_Job"] = "Select Job",
["Off_Dutty"] = "Off Duty",
["Remove_Job"] = "Remove Job",
["Go_Back"] = "Go Back",
--Job Center Menu
["Target_Menu"] = "Open Job Center",
["DrawText_Menu"] = "[E] Open Job Center", -- if you are using codem-textui then remove [E]
["Job_Center_Title"] = "Job Center",
["Job_Center_Text"] = "There you can take some free jobs for take some money",
["Job_Center_Lists"] = "Job Listing",
["Job_Listing_Title"] = "Job Listing",
["Job_Listing_Titles"] = "Job: %s",
["Job_Listing_desc"] = "%s / Salary: %s",
-- Admin Menu
["Admin_Menu_Title"] = "Admin Menu",
["Add_Job_Title"] = "Add Job to Player",
["Remove_Job_Title"] = "Remove Job to Player",
["Back_To_Multijob_Menu"] = "Multijob Menu",
-- Admin Menu Add/Remove Input
["Add_Title"] = "Add Job to Player",
["Remove_Title"] = "Remove Job to Player",
["Player_ID"] = "Player ID",
["Job_Name"] = "Job Name",
["Grade_Name"] = "Grade",
["Submit"] = "Submit", -- Only for QB-Menu
--Add
["Add_Job_name_desc"] = "Type job from database what jobs you have it", -- Working only on OX_LIB
["Add_Grade_desc"] = "Type Grade number what you give to player.", -- Working only on OX_LIB
--Remove
["Remove_Job_name_desc"] = "Type job what you go to removed.", -- Working only on OX_LIB
["Remove_Grade_desc"] = "Type Grade number what player have.", -- Working only on OX_LIB
--Webhook Locales
["Change_Job"] = "Change Job",
["Remove_Job"] = "Remove Job",
["A_AddJob"] = "Admin Give Job",
["A_RemoveJob"] = "Admin Remove Job",
["A_Name"] = "Admin Name",
["Name_Title"] = "First/Last Name",
["Job_Title"] = "Job",
["Grade_Title"] = "Grade",
-- Notifications
["Job_Added"] = {
text = "Job %s has been added!",
time = 5000,
type = "success"
},
["Job_Removed"] = {
text = "Job %s has been removed!",
time = 5000,
type = "success"
},
["Player_Not_Found"] = {
text = "Player Doesn´t Exist!",
time = 5000,
type = "error"
},
["Not_Admin"] = {
text = "You are not admin!",
time = 5000,
type = "error"
},
["Not_Have_More"] = {
text = "You cannot have more jobs! Max is "..Config.MaxJobs.." Jobs!",
time = 5000,
type = "error"
},
["Error"] = {
text = "Somenthing went wrong!",
time = 5000,
type = "error"
},
}
Config.ClientNotification = function(msg, type, time)
if Config.Framework == "esx" or Config.Framework == "oldesx" then
TriggerEvent("esx:showNotification", msg, type)
elseif Config.Framework == "qb" or Config.Framework == "oldqb" then
TriggerEvent("QBCore:Notify", msg, type, time)
end
end
Config.ServerNotification = function(source, msg, type, time)
local src = source
if Config.Framework == "esx" or Config.Framework == "oldesx" then
TriggerClientEvent("esx:showNotification", src, msg)
elseif Config.Framework == "qb" or Config.Framework == "oldqb" then
TriggerClientEvent("QBCore:Notify", src, msg, type, time)
end
end
Config.GetPermissions = function()
return {
"admin",
"mod",
}
end
```Last updated