I dont know what im doing wrong with the job code, but im obviously doing something wrong.
[CODE]TEAM_BLOODS = DarkRP.createJob("Bloods Member", {
color = Color(255, 140, 0, 255),
model = {"models/bloods/bloods_2.mdl", "models/bloods/bloods_3.mdl"},
description = [[You are now a member of the Bloods gang! Only leaders can declare war on the Crips!]],
weapons = {"weapon_arc_atmcard", "m9k_uzi"},
command = "blood",
max = 10,
salary = 40,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_CRIPS = DarkRP.createJob("Crips Members", {
color = Color(255, 140, 0, 255),
model = {"models/crips/crips_2.mdl", "models/crips/crips_1.mdl"},
description = [[Your now a member of the Crips gang! Only leaders can declare war on the Bloods!]],
weapons = {"weapon_arc_atmcard", "m9k_uzi"},
command = "crips",
max = 10,
salary = 40,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_CRIPSL = DarkRP.createJob("Crips Mob boss", {
color = Color(255, 140, 0, 255),
model = "models/crips/crips_3.mdl",
description = [[You are the leader of the Crips! Your enemy are the Bloods! You can declare war or have peace with each other!]],
weapons = {"weapon_arc_atmcard", "m9k_ak47", "m9k_uzi"},
command = "cripsl",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_BLOODSL = DarkRP.createJob("Bloods Mob boss", {
color = Color(255, 140, 0, 255),
model = "models/bloods/bloods_1.mdl",
description = [[You are the leader of the Bloods! Your enemy are the Crips! You can declare war or have peace with each other!]],
weapons = {"weapon_arc_atmcard", "m9k_ak47", "m9k_uzi"},
command = "bloodsl",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MAYOR = DarkRP.createJob("President", {
color = Color(255, 140, 0, 255),
model = "models/gdub.mdl",
description = [[You are the president of the country! You are the center of the government! Create laws and order cops to take care of any rebels!]],
weapons = {"weapon_arc_atmcard", "m9k_deagle"},
command = "president",
max = 1,
salary = 500,
admin = 0,
vote = false,
hasLicense = false,
PlayerDeath = function(ply)
if ply:Team() == TEAM_MAYOR or ply:Team() == TEAM_SS then
ply:changeTeam( TEAM_CITIZEN, true )
for k,v in pairs( player.GetAll() ) do
DarkRP.notify(v, 1, 4, "The President has been assassinated!")
end
end
end,
})
TEAM_POLICEC = DarkRP.createJob("Police Chief", {
color = Color(255, 140, 0, 255),
model = "models/thedolphni/swat.mdl",
description = [[You are the Police Chief. Instruct your policemen to take care of crime in the city!]],
weapons = {"weapon_arc_atmcard", "m9k_m92beretta", "m9k_m3", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "policechief",
max = 1,
salary = 65,
admin = 0,
vote = true,
hasLicense = false
})
TEAM_POLICE = DarkRP.createJob("Police Officer", {
color = Color(255, 140, 0, 255),
model = {"models/thedolphin/gasmask.mdl",
"models/thedolphin/pig2.mdl",
"models/thedolphin/riot.mdl",
"models/thedolphin/urban.mdl"},
description = [[You are a police officer! Your job is to take down the criminals in the city!]],
weapons = {"weapon_arc_atmcard", "m9k_m92beretta", "weapon_stungun", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker"},
command = "officer",
max = 6,
salary = 75,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_ASSASSIN = DarkRP.createJob("Assassin", {
color = Color(255, 140, 0, 255),
model = "models/norpo/arkhamorigins/assassins/deathstroke_valvebiped.mdl",
description = [[Your an Assassin! Kill your target to get more clients and show that your not a failure!]],
weapons = {"weapon_arc_atmcard", "m9k_dragunov", "m9k_mp5sd"},
command = "assassin",
max = 2,
salary = 125,
admin = 0,
vote = false,
hasLicense = false ,
customCheck = function(ply) return CLIENT or table.HasValue({"head-developer", "vip", "vip+", "community supporter", "respected", "donator", "Moderator", "admin", "superadmin","head-admin", "Co-Owner", "Owner"}, ply:GetUserGroup("usergroup")) end,
CustomCheckFailMsg = "Sorry, this class is donator only! Go to the website to become a donator" ,
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(255, 140, 0, 255),
model = "models/agent_47/agent_47.mdl",
description = [[Your a Hitman! Kill your target to get more clients and show that your not a failure!]],
weapons = {"weapon_arc_atmcard", "m9k_hk45"},
command = "hitman",
max = 2,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_SS = DarkRP.createJob("Secret Service", {
color = Color(255, 140, 0, 255),
model = {"models/player/Suits/male_01_closed_coat_tie.mdl",
"models/player/Suits/male_01_closed_coat_tie.mdl",
"models/player/Suits/male_01_closed_tie.mdl",
"models/player/Suits/male_01_open.mdl",
"models/player/Suits/male_01_open_tie.mdl",
"models/player/Suits/male_01_open_waistcoat.mdl",
"models/player/Suits/male_01_shirt.mdl",
"models/player/Suits/male_01_shirt_tie.mdl",
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_closed_tie.mdl",
"models/player/Suits/male_02_open.mdl",
"models/player/Suits/male_02_open_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_02_shirt.mdl",
"models/player/Suits/male_02_shirt_tie.mdl",
"models/player/Suits/male_03_closed_coat_tie.mdl",
"models/player/Suits/male_03_closed_tie.mdl",
"models/player/Suits/male_03_open.mdl",
"models/player/Suits/male_03_open_tie.mdl",
"models/player/Suits/male_03_open_waistcoat.mdl",
"models/player/Suits/male_03_shirt.mdl",
"models/player/Suits/male_03_shirt_tie.mdl",
"models/player/Suits/male_04_closed_coat_tie.mdl",
"models/player/Suits/male_04_closed_tie.mdl",
"models/player/Suits/male_04_open.mdl",
"models/player/Suits/male_04_open_tie.mdl",
"models/player/Suits/male_04_open_waistcoat.mdl",
"models/player/Suits/male_04_shirt.mdl",
"models/player/Suits/male_04_shirt_tie.mdl",
"models/player/Suits/male_05_closed_coat_tie.mdl",
"models/player/Suits/male_05_closed_tie.mdl",
"models/player/Suits/male_05_open.mdl",
"models/player/Suits/male_05_open_tie.mdl",
"models/player/Suits/male_05_open_waistcoat.mdl",
"models/player/Suits/male_05_shirt_tie.mdl",
"models/player/Suits/male_06_closed_coat_tie.mdl",
"models/player/Suits/male_06_closed_tie.mdl",
"models/player/Suits/male_06_open.mdl",
"models/player/Suits/male_06_open_tie.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_06_shirt.mdl",
"models/player/Suits/male_06_shirt_tie.mdl",
"models/player/Suits/male_07_closed_coat_tie.mdl",
"models/player/Suits/male_07_closed_tie.mdl",
"models/player/Suits/male_07_open.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_07_open_waistcoat.mdl",
"models/player/Suits/male_07_shirt.mdl",
"models/player/Suits/male_07_shirt_tie.mdl",
"models/player/Suits/male_08_closed_coat_tie.mdl",
"models/player/Suits/male_08_closed_tie.mdl",
"models/player/Suits/male_08_open.mdl",
"models/player/Suits/male_08_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_08_shirt.mdl",
"models/player/Suits/male_08_shirt_tie.mdl",
"models/player/Suits/male_09_closed_coat_tie.mdl",
"models/player/Suits/male_09_closed_tie.mdl",
"models/player/Suits/male_09_open.mdl",
"models/player/Suits/male_09_open_tie.mdl",
"models/player/Suits/male_09_open_waistcoat.mdl",
"models/player/Suits/male_09_shirt.mdl",
"models/player/Suits/male_09_shirt_tie.mdl"},
description = [[Guard the President at all costs! If he dies then you have failed him!]],
weapons = {"weapon_arc_atmcard", "m9k_m3", "m9k_m92beretta", "m9k_mp5sd"},
command = "secretservice",
max = 5,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_EMC = DarkRP.createJob("Emergency Medical Service", {
color = Color(255, 140, 0, 255),
model = "models/Kleiner.mdl",
description = [[Heal people to
You need to add a category. :)
e.g. add at the end [CODE]category = "Citizens"[/CODE]
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
[CODE]TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(255, 140, 0, 255),
model = "models/player/smith.mdl",
description = [[Steal anything you want, you can mug, raid, and kidnap!]],
weapons = {"weapon_arc_atmcard", "lockpick", "m9k_hk45" },
command = "thief",
max = 10,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens"
})[/CODE]
You can find/add categories in darkrpmodification/lua/customthings/categories.lua
Categories look like this if you want to make your own.
[url]http://wiki.darkrp.com/index.php/DarkRP:Categories[/url]
[CODE]DarkRP.createCategory{
name = "Citizens", -- The name of the category.
categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
color = Color(0, 107, 0, 255), -- The color of the category header.
canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
sortOrder = 1, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}
DarkRP.createCategory{
name = "Civil Protection", -- The name of the category.
categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
color = Color(0, 107, 0, 255), -- The color of the category header.
canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
sortOrder = 2, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}
DarkRP.createCategory{
name = "Mafia", -- The name of the category.
categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
color = Color(0, 107, 0, 255), -- The color of the category header.
canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
sortOrder = 3, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}[/CODE]
[editline]1st June 2015[/editline]
Also as a side note for this job.
[CODE]TEAM_SS = DarkRP.createJob("Secret Service", {
color = Color(255, 140, 0, 255),
model = {"models/player/Suits/male_01_closed_coat_tie.mdl",
"models/player/Suits/male_01_closed_coat_tie.mdl",
"models/player/Suits/male_01_closed_tie.mdl",
"models/player/Suits/male_01_open.mdl",
"models/player/Suits/male_01_open_tie.mdl",
"models/player/Suits/male_01_open_waistcoat.mdl",
"models/player/Suits/male_01_shirt.mdl",
"models/player/Suits/male_01_shirt_tie.mdl",
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_closed_tie.mdl",
"models/player/Suits/male_02_open.mdl",
"models/player/Suits/male_02_open_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_02_shirt.mdl",
"models/player/Suits/male_02_shirt_tie.mdl",
"models/player/Suits/male_03_closed_coat_tie.mdl",
"models/player/Suits/male_03_closed_tie.mdl",
"models/player/Suits/male_03_open.mdl",
"models/player/Suits/male_03_open_tie.mdl",
"models/player/Suits/male_03_open_waistcoat.mdl",
"models/player/Suits/male_03_shirt.mdl",
"models/player/Suits/male_03_shirt_tie.mdl",
"models/player/Suits/male_04_closed_coat_tie.mdl",
"models/player/Suits/male_04_closed_tie.mdl",
"models/player/Suits/male_04_open.mdl",
"models/player/Suits/male_04_open_tie.mdl",
"models/player/Suits/male_04_open_waistcoat.mdl",
"models/player/Suits/male_04_shirt.mdl",
"models/player/Suits/male_04_shirt_tie.mdl",
"models/player/Suits/male_05_closed_coat_tie.mdl",
"models/player/Suits/male_05_closed_tie.mdl",
"models/player/Suits/male_05_open.mdl",
"models/player/Suits/male_05_open_tie.mdl",
"models/player/Suits/male_05_open_waistcoat.mdl",
"models/player/Suits/male_05_shirt_tie.mdl",
"models/player/Suits/male_06_closed_coat_tie.mdl",
"models/player/Suits/male_06_closed_tie.mdl",
"models/player/Suits/male_06_open.mdl",
"models/player/Suits/male_06_open_tie.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_06_shirt.mdl",
"models/player/Suits/male_06_shirt_tie.mdl",
"models/player/Suits/male_07_closed_coat_tie.mdl",
"models/player/Suits/male_07_closed_tie.mdl",
"models/player/Suits/male_07_open.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_07_open_waistcoat.mdl",
"models/player/Suits/male_07_shirt.mdl",
"models/player/Suits/male_07_shirt_tie.mdl",
"models/player/Suits/male_08_closed_coat_tie.mdl",
"models/player/Suits/male_08_closed_tie.mdl",
"models/player/Suits/male_08_open.mdl",
"models/player/Suits/male_08_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_08_shirt.mdl",
"models/player/Suits/male_08_shirt_tie.mdl",
"models/player/Suits/male_09_closed_coat_tie.mdl",
"models/player/Suits/male_09_closed_tie.mdl",
"models/player/Suits/male_09_open.mdl",
"models/player/Suits/male_09_open_tie.mdl",
"models/player/Suits/male_09_open_waistcoat.mdl",
"models/player/Suits/male_09_shirt.mdl",
"models/player/Suits/male_09_shirt_tie.mdl"},
description = [[Guard the President at all costs! If he dies then you have failed him!]],
weapons = {"weapon_arc_atmcard", "m9k_m3", "m9k_m92beretta", "m9k_mp5sd"},
command = "secretservice",
max = 5,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
})[/CODE]
There is really no need to use so many model variations on one class for instance I use models from that model pack for several classes.
Couldn't submaterials also be used to lower the amount of models?
Sorry, you need to Log In to post a reply to this thread.