Garry's Mod
Need help jobs not working
Submitted by cmill279, 20-07-2018, 02:22 PM, Thread ID: 96080
Thread Closed
20-07-2018, 02:22 PM
#1 so i was making some jobs and when i saved it it stopped working help here is the code i put in please tell me if thereis something wrong with it thanks.
TEAM_OPIUM = DarkRP.createJob("Opium Manufacture ", {
color = Color(0, 0, 0, 255),
model = {"models/player/soldier_stripped.mdl"},
description = [[Your an opium manufacturer you sell it to the npcs around the map ]],
weapons = {},
command = "Opium",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Opium"
})
TEAM_POLICE = DarkRP.createJob("Swat Assault ", {
color = Color(0, 0, 0, 255),
model = {"models/player/riot.mdl"},
description = [[Your part of the swat team you go around the city and make sure everyone is alright. ]],
weapons = {"m9k_scar", "m9k_usp", "m9k_m61_frag", "weaponchecker", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "csgo_karambit"},
command = "Swat",
max = 1,
salary = 400,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetArmor(150)
end
})
TEAM_POLICE = DarkRP.createJob("Police Chief ", {
color = Color(0, 0, 0, 255),
model = {"models/player/combine_soldier.mdl"},
description = [[Your the police chief your job is to coordinate the swat and police and tell them what to do ]],
weapons = {"csgo_bayonet", "m9k_usp", "m9k_ithacam37", "m9k_mp7"},
command = "PoliceChief",
max = 1,
salary = 600,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end
})
TEAM_POLICE = DarkRP.createJob("Police Officer ", {
color = Color(0, 0, 0, 255),
model = {"models/player/police_fem.mdl"},
description = [[Your a police officer you protect the people of the city and make sure they don't do anything illegal. ]],
weapons = {"csgo_bayonet", "m9k_usp", "m9k_mp7"},
command = "PoliceChief",
max = 8,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(50)
end
})
TEAM_POLICE = DarkRP.createJob("Heavy swat", {
color = Color(0, 0, 0, 255),
model = {"models/player/urban.mdl"},
description = [[Your a swat member you coordinate raids on people with illegal things in there houses. ]],
weapons = {"csgo_bayonet", "m9k_usp", "m9k_jackhammer", "m9k_ares_shrike", "m9k_m61_frag"},
command = "HeavySwat",
max = 2,
salary = 200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(200)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"Donator", "superadmin", "admin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "This job is donator only.",
})
TEAM_POLICE = DarkRP.createJob("Swat Sniper", {
color = Color(0, 0, 0, 255),
model = {"models/player/swat.mdl"},
description = [[Your a swat member you coordinate raids on people with illegal things in there houses. ]],
weapons = {"csgo_bayonet", "m9k_usp", "m9k_glock", "m9k_aw50"},
command = "SwatSniper",
max = 2,
salary = 200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"Donator", "superadmin", "admin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "This job is donator only.",
})
TEAM_Thief = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = {"models/player/arctic.mdl"},
description = [[you are a thief you break into houses and steal there shit.]],
weapons = {"lockpick"},
command = "Thief",
max = 9,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Thief",
PlayerSpawn = function(ply)
ply:SetArmor(40)
end
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(255, 0, 0, 255),
model = {"models/player/leet.mdl"},
description = [[Your a hitman your job is to kill people with a hit on them.]],
weapons = {},
command = "HITMAN",
max = 2,
salary = 200,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
category = "HITMAN",
PlayerSpawn = function(ply)
ply:SetArmor(40)
end
})
TEAM_CUSTOMCLASS = DarkRP.createJob("Toxic", {
color = Color(0, 140, 255, 255),
model = {"models/pechenko_121/Deadpool/chr_deadpool2.mdl"},
description = [[Luke Gods CustomClass]],
weapons = {},
command = "LukeGodz",
max = 1,
salary = 400,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "CustomClass",
customCheck = function(ply) return
table.HasValue({"STEAM_1:1:158379078"}, ply:SteamID())
end,
CustomCheckFailMsg = "This job is not for you",
})
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
color = Color(0, 0, 0, 255),
model = {"models/player/Group01/female_02.mdl"},
description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {},
command = "Citizen",
max = 0,
salary = 250,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizen"
})
TEAM_OPIUM = DarkRP.createJob("Opium Manufacture ", {
color = Color(0, 0, 0, 255),
model = {"models/player/soldier_stripped.mdl"},
description = [[Your an opium manufacturer you sell it to the npcs around the map ]],
weapons = {},
command = "Opium",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Opium"
})
TEAM_POLICE = DarkRP.createJob("Swat Assault ", {
color = Color(0, 0, 0, 255),
model = {"models/player/riot.mdl"},
description = [[Your part of the swat team you go around the city and make sure everyone is alright. ]],
weapons = {"m9k_scar", "m9k_usp", "m9k_m61_frag", "weaponchecker", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "csgo_karambit"},
command = "Swat",
max = 1,
salary = 400,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetArmor(150)
end
})
TEAM_POLICE = DarkRP.createJob("Police Chief ", {
color = Color(0, 0, 0, 255),
model = {"models/player/combine_soldier.mdl"},
description = [[Your the police chief your job is to coordinate the swat and police and tell them what to do ]],
weapons = {"csgo_bayonet", "m9k_usp", "m9k_ithacam37", "m9k_mp7"},
command = "PoliceChief",
max = 1,
salary = 600,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end
})
TEAM_POLICE = DarkRP.createJob("Police Officer ", {
color = Color(0, 0, 0, 255),
model = {"models/player/police_fem.mdl"},
description = [[Your a police officer you protect the people of the city and make sure they don't do anything illegal. ]],
weapons = {"csgo_bayonet", "m9k_usp", "m9k_mp7"},
command = "PoliceChief",
max = 8,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(50)
end
})
TEAM_POLICE = DarkRP.createJob("Heavy swat", {
color = Color(0, 0, 0, 255),
model = {"models/player/urban.mdl"},
description = [[Your a swat member you coordinate raids on people with illegal things in there houses. ]],
weapons = {"csgo_bayonet", "m9k_usp", "m9k_jackhammer", "m9k_ares_shrike", "m9k_m61_frag"},
command = "HeavySwat",
max = 2,
salary = 200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(200)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"Donator", "superadmin", "admin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "This job is donator only.",
})
TEAM_POLICE = DarkRP.createJob("Swat Sniper", {
color = Color(0, 0, 0, 255),
model = {"models/player/swat.mdl"},
description = [[Your a swat member you coordinate raids on people with illegal things in there houses. ]],
weapons = {"csgo_bayonet", "m9k_usp", "m9k_glock", "m9k_aw50"},
command = "SwatSniper",
max = 2,
salary = 200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "police",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"Donator", "superadmin", "admin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "This job is donator only.",
})
TEAM_Thief = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = {"models/player/arctic.mdl"},
description = [[you are a thief you break into houses and steal there shit.]],
weapons = {"lockpick"},
command = "Thief",
max = 9,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Thief",
PlayerSpawn = function(ply)
ply:SetArmor(40)
end
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(255, 0, 0, 255),
model = {"models/player/leet.mdl"},
description = [[Your a hitman your job is to kill people with a hit on them.]],
weapons = {},
command = "HITMAN",
max = 2,
salary = 200,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
category = "HITMAN",
PlayerSpawn = function(ply)
ply:SetArmor(40)
end
})
TEAM_CUSTOMCLASS = DarkRP.createJob("Toxic", {
color = Color(0, 140, 255, 255),
model = {"models/pechenko_121/Deadpool/chr_deadpool2.mdl"},
description = [[Luke Gods CustomClass]],
weapons = {},
command = "LukeGodz",
max = 1,
salary = 400,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "CustomClass",
customCheck = function(ply) return
table.HasValue({"STEAM_1:1:158379078"}, ply:SteamID())
end,
CustomCheckFailMsg = "This job is not for you",
})
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
color = Color(0, 0, 0, 255),
model = {"models/player/Group01/female_02.mdl"},
description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
weapons = {},
command = "Citizen",
max = 0,
salary = 250,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizen"
})
Users browsing this thread: 2 Guest(s)