Hey so I can not get myjobs into F4 i dont know what I am doing wrong this should b coded fine.
My Lua:
[CODE]TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/combine_soldier.mdl",
description = [[Being an admin requires a great responsibility, when you become this job you have to take
your job as an admin serious, and help the ones who is in need of an admin.]],
weapons = {},
command = "adminonduty",
max = 0,
salary = 100,
admin = 1,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"Admin On Duty"}, ply:GetNWString("usergroup")) end,
})
TEAM_HADMIN = DarkRP.createJob("H-Admin On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/combine_soldier.mdl",
description = [[Being a head admin requires a great responsibility, when you become this job you have to take
your job as an admin serious, and help the ones who is in need of an admin.]],
weapons = {},
command = "hadminonduty",
max = 0,
salary = 200,
admin = 1,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"H-Admin On Duty"}, ply:GetNWString("usergroup")) end,
})
TEAM_MOD = DarkRP.createJob("Mod On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Being a mod requires a great responsibility, when you become this job you have to take
your job as a mod serious, and help the ones who is in need of a mod.]],
weapons = {"arrest_stick", "unarrest_stick"},
command = "modonduty",
max = 0,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"Mod On Duty"}, ply:GetNWString("usergroup")) end,
})
TEAM_TMOD = DarkRP.createJob("Trial-Mod On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Being a trial mod requires a great responsibility, when you become this job you have to take
your job as a mod serious, and help the ones who is in need of a trial mod.]],
weapons = {"arrest_stick", "unarrest_stick"},
command = "tmodonduty",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"Trial-Mod On Duty"}, ply:GetNWString("usergroup")) end,
})
TEAM_HMOD = DarkRP.createJob("Head-Mod On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Being a Head mod requires a great responsibility, when you become this job you have to take
your job as a Head Mod serious and teach other moderators common sense, and help the ones who is in need of a mod in general.]],
weapons = {"arrest_stick", "unarrest_stick"},
command = "hmodonduty",
max = 0,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"Head-Mod On Duty"}, ply:GetNWString("usergroup")) end,
})
TEAM_SADMIN = DarkRP.createJob("S-Admin On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/combine_super_soldier.mdl",
description = [[Being a super admin requires a great responsibility, when you become this job you have to take
your job as an admin serious, and help the ones who is in need of a superadmin.]],
weapons = {"arrest_stick", "unarrest_stick"},
command = "sadminonduty",
max = 0,
salary = 100,
admin = 2,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"S-Admin On Duty"}, ply:GetNWString("usergroup")) end,
})
TEAM_OWNER = DarkRP.createJob("Owner On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/combine_super_soldier.mdl",
description = [[Being a Owner requires a great responsibility, when you become this job you have to take
your job as an admin serious, and help the ones who is in need of a Owner. And teach the other superadmins common sense.]],
weapons = {"arrest_stick", "unarrest_stick","m9k_minigun"},
command = "owner",
max = 0,
salary = 200,
admin = 2,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"Owner On Duty"}, ply:GetNWString("usergroup")) end,
})
TEAM_COOWNER = DarkRP.createJob("Co-Owner On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/combine_super_soldier.mdl",
description = [[Being a Co-Owner requires a great responsibility, when you become this job you have to take
your job as an admin serious, and help the ones who is in need of a Co-Owner. And teach the other superadmins common sense.]],
weapons = {"arrest_stick", "unarrest_stick","m9k_minigun"},
command = "sadminonduty",
max = 0,
salary = 200,
admin = 2,
vote = false,
hasLicense = false,
customCheck = function(ply) return table.HasValue({"Co-Owner On Duty"}, ply:GetNWString("usergroup")) end,
})
TEAM_SWAT = DarkRP.createJob("S.W.A.T", {
color = Color(80, 45, 0, 255),
model = "models/player/swat.mdl",
description = [[You are a S.W.A.T, Your job is to handle the bigger crimes in the city.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"},
command = "swat",
max = 2,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return table.HasValue({"S.W.A.T"}, ply:GetNWString("usergroup")) end,
})
TEAM_SWATSNIPER = DarkRP.createJob("S.W.A.T Sniper", {
color = Color(30, 45, 105, 255),
model = "models/player/riot.mdl",
description = [[You are a S.W.A.T, Your job is to handle the bigger crimes in the city. You are a Sniper Specialist]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "ls_sniper", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"},
command = "swatsniper",
max = 1,
salary = 125,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return table.HasValue({"S.W.A.T Sniper"}, ply:GetNWString("usergroup")) end,
})
TEAM_SWATLEADER = DarkRP.createJob("S.W.A.T Leader", {
color = Color(30, 45, 105, 255),
model = "models/player/swat.mdl",
description = [[ Do everything you can to keep the city safe.
If theres no mayor, you're in charge.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472"},
command = "swatl",
max = 1,
salary = 210,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return table.HasValue({"S.W.A.T Leader"}, ply:GetNWString("usergroup")) end,
})
TEAM_SWATMEDIC = DarkRP.createJob("S.W.A.T Medic", {
color = Color(30, 45, 105, 255),
model = "models/player/riot.mdl",
description = [[You are a S.W.A.T, Your job is to handle the bigger crimes in the city. You are the medic in the group, you should provide medical help to your team]],
weapons = "arrest_stick", "weapon_mp52", "stunstick", "door_ram", "weaponchecker", "med_kit"},
command = "swatmedicr",
max = 1,
salary = 125,
admin = 0,
vote = true,
hasLicense = true,
customCheck = function(ply) return table.HasValue({"S.W.A.T Medic"}, ply:GetNWString("usergroup")) end,
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[People hire you to send people to a looong vacation.]],
weapons = {"weapon_glock2", "ls_sniper"},
command = "hitman",
max = 5,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return tabl