Add a new department
How do you add a new department? Like the FBI or sheriff's
To add a new department, we will first add new data to the Department section. Here, I will add a new ambulance profession to show you.
Departments = {
[1] = {
job = "police",
label = "LSPD",
type = "leo",
defaultDuty = true,
offDutyPay = false,
name = "boss_1_pd_1", -- This should be the same as the boss menu name in the Coords section.
grades = {
['0'] = { name = "Recruit", payment = 50 },
['1'] = { name = "Officer", payment = 75 },
['2'] = { name = "Sergeant", payment = 100 },
['3'] = { name = "Lieutenant", payment = 125 },
['4'] = { name = "Chief", isboss = true, payment = 150 },
},
blip = { label = "LSPD", coords = vector3(430.931885, -981.019775, 30.69519), sprite = 60, color = 38, scale = 0.9, shortRange = true }
},
[2] = {
job = "ambulance",
label = "Ambulance",
type = "medical",
defaultDuty = true,
offDutyPay = false,
name = "new_job_ambulance", -- This should be the same as the boss menu name in the Coords section.
grades = {
['0'] = { name = "EMT Recruit", payment = 50 },
['1'] = { name = "EMT", payment = 75 },
['2'] = { name = "Paramedic", payment = 100 },
['3'] = { name = "Doctor", payment = 125 },
['4'] = { name = "Chief Doctor", isboss = true, payment = 150 },
},
blip = {
label = "Ambulance",
coords = vector3(-449.2, 6012.9, 31.7),
sprite = 60,
color = 5,
scale = 0.9,
shortRange = true
}
},
},
Then let's add the weapon part.
As you can see, the name section below and the key in the Items section are the same. This is how it should be.
Now let's add a different clothing location
Here, the key in the Cloths section is the same as the name. This should always be the case.
Now let's add a new garage. The logic is always the same. Don't forget to enter the same name.
Now let's add the boss menu. The name here should be the same as the name in the Departments section, just like the others.
SQL OPERATIONS (If you do not perform these steps, the job you added will not work properly.)
First, add the job you just added to the grades section in the order shown in the photo. Don't forget to select the boss. Sample code:

You should also add the necessary items here later to configure permissions. Adding them in order will suffice. Example for Ambulance Job:

Last updated