My Categories wont go in order for DarkRP
What my in-game f4 menu looks like
https://steamcommunity.com/sharedfiles/filedetails/?id=1603865641
https://steamcommunity.com/sharedfiles/filedetails/?id=1603865626
jobs.lua file
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_STAFF = DarkRP.createJob("Administration", {
color = Color(0, 150, 255, 255),
model = {"models/tsbb/elf.mdl"},
description = [[You are a staff member, DO NOT ROLEPLAY ON THIS JOB!]],
weapons = {},
command = "staff",
max = 8,
salary = 5000,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Administration"
})
TEAM_POLICECDT = DarkRP.createJob("Police Cadet", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[You are a police cadet, please wait in the training room for a trainer, it get a trainer type in chat:
// I need a trainer at pd please.
wait and a trainer will be with you shortly. ]],
weapons = {},
command = "cdt",
max = 0,
salary = 20,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_POLICEOFC = DarkRP.createJob("Patrol Officer", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_05_santosrp.mdl"},
description = [[You are a police officer, you do not get a car until you rank up, ride with someone else or walk around of foot patrol. ]],
weapons = {},
command = "officer",
max = 10,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_POLICESOFC = DarkRP.createJob("Senior Patrol Officer", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "senior",
max = 10,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_LANCORP = DarkRP.createJob("Police Lance Corporal", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "corporal",
max = 10,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_CORPORAL = DarkRP.createJob("Police Corporal", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "corporal2",
max = 10,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_SERGEANT = DarkRP.createJob("Police Sergeant", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "sergeant",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_MASSERGEANT = DarkRP.createJob("Police Master Sergeant", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "mastersergeant",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_SERMAJ = DarkRP.createJob("Police Sergeant Major", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "sergeantmajor",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_LEU = DarkRP.createJob("Police Lieutenant ", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "leu",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_CAP = DarkRP.createJob("Police Captain", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "captain",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_MAG = DarkRP.createJob("Police Major", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "major",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_COR = DarkRP.createJob("Police Colonel", {
color = Color(6, 0, 255, 255),
model = {"models/player/santosrp/male_06_santosrp.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "colonel",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_ASSCHIEF = DarkRP.createJob("Police Assistant Chief", {
color = Color(6, 0, 255, 255),
model = {"models/humans/ecpdsergeant/male_01.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "asschief",
max = 1,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_DEPCHIEF = DarkRP.createJob("Police Deputy Chief", {
color = Color(6, 0, 255, 255),
model = {"models/humans/ecpdsergeant/male_01.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "depchief",
max = 1,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_CHIEF = DarkRP.createJob("Police Chief", {
color = Color(6, 0, 255, 255),
model = {"models/humans/ecpdsergeant/male_01.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "chief",
max = 1,
salary = 400,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_DEPCOMM = DarkRP.createJob("Police Deputy Commissioner", {
color = Color(34, 85, 85, 255),
model = {"models/humans/ecpdsergeant/male_01.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "depcomm",
max = 1,
salary = 400,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
TEAM_COMM = DarkRP.createJob("Police Commissioner", {
color = Color(34, 85, 85, 255),
model = {"models/humans/ecpdsergeant/male_01.mdl"},
description = [[ Follow the Police rules that can be found in the !MOTD]],
weapons = {},
command = "comm",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Police"
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_STAFF] = true,
[TEAM_POLICECDT] = true,
[TEAM_POLICEOFC] = true,
[TEAM_POLICESOFC] = true,
[TEAM_LANCORP] = true,
[TEAM_CORPORAL] = true,
[TEAM_SERGEANT] = true,
[TEAM_MASSERGEANT] = true,
[TEAM_SERMAJ] = true,
[TEAM_LEU] = true,
[TEAM_CAP] = true,
[TEAM_MAG] = true,
[TEAM_COR] = true,
[TEAM_ASSCHIEF] = true,
[TEAM_DEPCHIEF] = true,
[TEAM_CHIEF] = true,
[TEAM_DEPCOMM] = true,
[TEAM_COMM] = true
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
By default, they go in alphabetical order. To counter that, add a line to each job indicating what order you want it to go in:
sortOrder = 1,
sortOrder = 2,
sortOrder = 3,
and so on.
thanks i will try
thanks
Sorry, you need to Log In to post a reply to this thread.