--[[---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_COP = DarkRP.createJob("Civil Protection", {
color = Color(0, 0, 255, 255),
model = "models/humans/nypd1940/male_02.mdl",
description = [[This is a cop!]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "m9k_sig_p229r"},
command = "cop",
max = 5,
salary = 45,
admin = 0,
vote = true,
hasLicense = true,
})
TEAM_COPC = DarkRP.createJob("Civil Protection Chief", {
color = Color(0, 0, 255, 255),
model = "models/humans/nypd1940/male_09.mdl",
description = [[You are the Chief of the S.W.A.T Team! You are the commander of the S.W.A.T Force! ]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "m9k_mp5"},
command = "copc",
max = 1,
salary = 60,
admin = 0,
vote = true,
hasLicense = true,
})
TEAM_SWAT = DarkRP.createJob("SWAT", {
color = Color(0, 0, 255, 255),
model = "models/humans/nypd1940/male_07.mdl",
description = [[This is a cop]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "m9k_m4a1"},
command = "swat",
max = 10,
salary = 75,
admin = 0,
vote = false,
hasLicense = true,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "modvip" or ply:GetNWString("usergroup") == "adminvip" or ply:GetNWString("usergroup") == "headadmin" or ply:GetNWString("usergroup") == "superadmin" end
})
TEAM_SWATC = DarkRP.createJob("SWAT Chief", {
color = Color(0, 0, 255, 255),
model = "models/humans/nypd1940/male_07.mdl",
description = [[You are the Chief of the Police Force! You are the leader of the Police Force!]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "m9k_m3"},
command = "swatc",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = true,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "modvip" or ply:GetNWString("usergroup") == "adminvip" or ply:GetNWString("usergroup") == "headadmin" or ply:GetNWString("usergroup") == "superadmin" end
})
TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(255, 0, 0, 255),
model = "models/obama/obama.mdl",
description = [[You are the Mayor! You run the whole town.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram"},
command = "mayor",
max = 1,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
mayor = true,
})
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(75, 75, 75, 255),
model = "models/humans/mafia/male_04.mdl",
description = [[You are a Thief! You are able to raid, mug and kidnap people! Try not to get caught by the police!]],
weapons = {"lockpick"},
command = "thief",
max = 15,
salary = 20,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_PROTHIEF = DarkRP.createJob("Pro Thief", {
color = Color(75, 75, 75, 255),
model = "models/humans/mafia/male_04.mdl",
description = [[You are a Thief! You are able to raid, mug and kidnap people! Try not to get caught by the police!]],
weapons = {"lockpick1"},
command = "prothief",
max = 10,
salary = 20,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "modvip" or ply:GetNWString("usergroup") == "adminvip" or ply:GetNWString("usergroup") == "headadmin" or ply:GetNWString("usergroup") == "superadmin" end
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(102, 0, 0, 255),
model = "models/player/leet.mdl",
description = [[You are a hitman, you kill people for money!]],
weapons = {"m9k_scoped_taurus"},
command = "hitman",
max = 4,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_PROHITMAN = DarkRP.createJob("Pro Hitman", {
color = Color(102, 0, 0, 255),
model = "models/player/leet.mdl",
description = [[You are a hitman, you kill people for money!]],
weapons = {"m9k_barret_m82"},
command = "prohitman",
max = 2,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "modvip" or ply:GetNWString("usergroup") == "adminvip" or ply:GetNWString("usergroup") == "headadmin" or ply:GetNWString("usergroup") == "superadmin" end
})
TEAM_GUN1 = DarkRP.createJob("Light Gun Dealer", {
color = Color(255, 165, 0, 255),
model = "models/player/monk.mdl",
description = [[You are a gun dealer and you sell guns to the public!]],
weapons = {""},
command = "gun1",
max = 2,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_GUN2 = DarkRP.createJob("Heavy Gun Dealer", {
color = Color(255, 165, 0, 255),
model = "models/player/monk.mdl",
description = [[You are a gun dealer and you sell guns to the public!]],
weapons = {""},
command = "gun2",
max = 2,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_GUN3 = DarkRP.createJob("Pro Gun Dealer", {
color = Color(255, 165, 0, 255),
model = "models/player/monk.mdl",
description = [[You are a gun dealer and you sell guns to the public!]],
weapons = {""},
command = "gun3",
max = 2,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip" or ply:GetNWString("usergroup") == "modvip" or ply:GetNWString("usergroup") == "adminvip" or ply:GetNWString("usergroup") == "headadmin" or ply:GetNWString("usergroup") == "superadmin" end
})
TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
color = Color(150, 150, 150, 255),
model = "models/niko_bellic/slow.md",
description = [[You are a Black Market Dealer andyou sell illegal goods!]],
weapons = {""},
command = "bmd",
max = 3,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
color = Color(75, 75, 75, 255),
model = "models/agent_47.mdl",
description = [[You are a drug dealer and you sell drugs to people!]],
weapons = {""},
command = "drug",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_BLOOD = DarkRP.createJob("Blood", {
color = Color(255, 0, 0, 255),
Check your console for any errors and post it here.
Try getting rid of the "" in weapons = {""} so it looks like weapons = {}
thank you
problem solved
Sorry, you need to Log In to post a reply to this thread.