Hello, When players join the server, they are set to a random job by default. When they try to join jobs, they get the command that is supposed to set you to the job. (Example, I click to be a mechanic, in the chat it says: "/mechanic" and it does not switch me to the job). Also, When I go to become a citizen, it says: "Unable to become theater manager".
-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
/*--------------------------------------------------------
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
--------------------------------------------------------*/
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.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 = {"weapon_arc_atmcard"},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_POLICE = DarkRP.createJob("Police Officer", {
color = Color(0, 12, 186, 255),
model = {"models/player/nypd/male_02.mdl", "models/player/nypd/male_04.mdl", "models/player/nypd/male_05.mdl", "models/player/nypd/male_07.mdl", "models/player/nypd/male_08.mdl", "models/player/nypd/male_09.mdl"},
description = [[The protector of every citizen that lives in the city.
You have the power to arrest criminals and protect innocents.
Hit a player with your arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted <name> to alert the public to the presence of a criminal.]],
weapons = {"arrest_stick", "weapon_arc_atmcard", "unarrest_stick", "m9k_sig_p229r", "stunstick", "door_ram", "weapon_rad15", "weapon_checker"},
command = "cp",
max = 4,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_SWAT = DarkRP.createJob("S.W.A.T.", {
color = Color(0, 44, 125, 255),
model = {"models/gign remasteredhd.mdl", "models/gign remasteredhdnpc.mdl"},
description = [[The S.W.A.T. is the protector against Terrorism, Hostage Situations, and any other situation that police normally can not handle.]],
weapons = {"arrest_stick", "weapon_arc_atmcard", "unarrest_stick", "m9k_sig_p229r", "stunstick", "door_ram", "weapon_rad15", "weapon_checker", "m9k_mp5sd"},
command = "swat",
max = 4,
salary = 90,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_SWATSNIPER = DarkRP.createJob("S.W.A.T. Sniper", {
color = Color(0, 44, 125, 255),
model = {"models/blacklist/merc1.mdl"},
description = [[The S.W.A.T. sniper is the protector against Terrorism, Hostage Situations, and any other situation that police normally can not handle.]],
weapons = {"arrest_stick", "weapon_arc_atmcard", "unarrest_stick", "m9k_sig_p229r", "stunstick", "door_ram", "weapon_rad15", "weapon_checker", "m9k_m24"},
command = "swatsniper",
max = 4,
salary = 90,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
["pistol"] = 60,
}
})
TEAM_GANG = DarkRP.createJob("Gangster", {
color = Color(75, 75, 75, 255),
model = {
"models/player/Group03/Female_01.mdl",
"models/player/Group03/Female_02.mdl",
"models/player/Group03/Female_03.mdl",
"models/player/Group03/Female_04.mdl",
"models/player/Group03/Female_06.mdl",
"models/player/group03/male_01.mdl",
"models/player/Group03/Male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/Male_04.mdl",
"models/player/Group03/Male_05.mdl",
"models/player/Group03/Male_06.mdl",
"models/player/Group03/Male_07.mdl",
"models/player/Group03/Male_08.mdl",
"models/player/Group03/Male_09.mdl"},
description = [[The lowest person of crime.
A gangster generally works for the Mobboss who runs the crime family.
The Mob boss sets your agenda and you follow it or you might be punished.]],
weapons = {"weapon_arc_atmcard"},
command = "gangster",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[The Mayor of the city creates laws to govern the city.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player.
Type /jailpos to set the Jail Position.
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area.
/unlockdown to end a lockdown]],
weapons = {},
command = "mayor",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true
})
TEAM_MOB = DarkRP.createJob("Mob boss", {
color = Color(82, 82, 82, 255),
model = "models/player/gman_high.mdl",
description = [[The Mob boss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficient crime organization.
He has the ability to break into houses by using a lockpick.
The Mob boss posesses the ability to unarrest you.]],
weapons = {"lockpick", "unarrest_stick", "weapon_arc_atmcard"},
command = "mobboss",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.34,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_GUN = DarkRP.createJob("Gun Dealer", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[A Gun Dealer is the only person who can sell guns to other people.
Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
weapons = {"weapon_arc_atmcard"},
command = "gundealer",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MEDIC = DarkRP.createJob("Paramedic", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[With your medical knowledge you work to restore players to full health.
Without a medic, people cannot be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]],
weapons = {"med_kit", "weapon_arc_atmcard"},
command = "medic",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
medic = true
})
TEAM_CHIEF = DarkRP.createJob("Police Chief", {
color = Color(0, 12, 186, 255),
model = "models/player/nypd/male_06.mdl",
description = [[The Police Chief is the leader of the Police Force.
Coordinate the police force to enforce law in the city.
Hit a player with arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
Type /wanted <name> to alert the public to the presence of a criminal.
Type /jailpos to set the Jail Position]],
weapons = {"arrest_stick", "weapon_arc_atmcard", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weapon_stungun", "weapon_rad15", "weapon_checker"},
command = "chief",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
ammo = {
["pistol"] = 60,
}
})
TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(80, 45, 0, 255),
model = "models/player/corpse1.mdl",
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your own wooden home somewhere in a corner or outside someone else's door]],
weapons = {"weapon_bugbait", "weapon_arc_atmcard"},
command = "hobo",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true
})
TEAM_BANKER = AddExtraTeam("Banker", {
color = Color(0, 160, 10, 255),
model = {"models/player/mossman.mdl", "models/nikout/carleypm.mdl"},
description = [[Keep peoples money safe, and earn profits with them!]],
weapons = {"weapon_arc_atmcard"},
command = "banker",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_THIEF = AddExtraTeam("Thief", {
color = Color(0, 0, 0, 255),
model = {"models/player/phoenix.mdl", "models/player/robber.mdl", "models/player/cj.mdl", "models/player/lilith/lilith.mdl"},
description = [[As a Thief, your job is to break into player's homes and steal their valuable's.]],
weapons = {"weapon_arc_atmcard", "lockpick", "keypad_cracker"},
command = "thief",
max = 10,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 255, 68, 255),
model = {"models/agent_47/agent_47.mdl"},
description = [[As a Hitman, your job is to take out targets that other players want.]],
weapons = {"weapon_arc_atmcard", "m9k_ak74"},
command = "hitman",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
lvl = 5,
})
TEAM_DRUGDEALER = DarkRP.createJob("Drug Dealer", {
color = Color(0, 43, 255, 255),
model = {"models/player/soldier_stripped.mdl", "models/player/hunter.mdl"},
description = [[As a drug dealer, your job is to sell drugs on the street.]],
weapons = {"weapon_arc_atmcard"},
command = "drugdealer",
max = 1,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_CHEF = DarkRP.createJob("Restaurant Owner", {
color = Color(0, 176, 136, 255),
model = {"models/fearless/chef1.mdl", "models/fearless/chef2.mdl"},
description = [[As a restaurant owner, your job is to create delicious meals to serve to your customers.]],
weapons = {"weapon_arc_atmcard"},
command = "chef",
max = 2,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_BANKROBBER = DarkRP.createJob("Bank Robber", {
color = Color(0, 0, 255, 255),
model = {"models/player/pd2_dallas_p.mdl", "models/player/pd2_chains_p.mdl", "models/player/pd2_hoxton_p.mdl", "models/player/pd2_wolf_p.mdl"},
description = [[As a bank robber, your job is to rob the bank. YOU ARE NOT A THIEF, YOU CANNOT RAID HOMES OR BUSINESSES.]],
weapons = {"weapon_arc_atmcard", "m9k_mp5", "lockpick", "keypad_cracker"},
command = "bankrobber",
max = 3,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_BANKGUARD = DarkRP.createJob("Bank Guard", {
color = Color(0, 255, 238, 255),
model = {"models/player/guard_pack/guard_01.mdl", "models/player/guard_pack/guard_02.mdl", "models/player/guard_pack/guard_04.mdl", "models/player/guard_pack/guard_05.mdl"},
description = [[As a security officer, citizens or private companies may hire you to defend certain places. (YOU MAY NOT RAID)]],
weapons = {"keypad_cracker", "m9k_hk45", "m9k_tec9", "weapon_arc_atmcard", "weapon_checker"},
command = "bankguard",
max = 3,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_HITLERSS = DarkRP.createJob("Hitler's Schutzstaffel", {
color = Color(122, 122, 122, 255),
model = {"models/player/soldier/soldier_1.mdl", "models/player/soldier/soldier_2.mdl", "models/player/soldier/soldier_3.mdl", "models/player/soldier/soldier_g1.mdl", "models/player/soldier/soldier_g2.mdl"},
description = [[Protect the FUHRER...or used to be Fuhrer!]],
weapons = {"weapon_arc_atmcard", "m9k_mp40", "m9k_luger"},
command = "naziss",
max = 4,
salary = 95,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_HITLER = DarkRP.createJob("Hitler", {
color = Color(122, 122, 122, 255),
model = {"models/minson97/hitler/hitler.mdl"},
description = [[The Fuhrer!]],
weapons = {"weapon_arc_atmcard"},
command = "nazi",
max = 1,
salary = 95,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_DJ = DarkRP.createJob("DJ", {
color = Color(0, 255, 238, 255),
model = {"models/player/p2_chell.mdl"},
description = [[As a DJ, your job is to create a disco and have fun!]],
weapons = {"weapon_arc_atmcard"},
command = "dj",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_RAPPER = DarkRP.createJob("Rapper", {
color = Color(255, 212, 84, 255),
model = {"models/snoopdogg.mdl"},
description = [[As a rapper, your job is to rap in-game.]],
weapons = {"weapon_arc_atmcard"},
command = "rapper",
max = 1,
salary = 115,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_PYSCHO = DarkRP.createJob("Pyscho", {
color = Color(209, 86, 84, 86),
model = {"models/ninja/vaas.mdl"},
description = [[As a pyscho, your job is to act crazy, Yes...you may scream into your mic, take hostages, .etc (YOU MAY NOT RDM!)]],
weapons = {"weapon_arc_atmcard", "m9k_machete"},
command = "pyscho",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_FIGHTCLUBLEADER = DarkRP.createJob("Fight Club Leader", {
color = Color(124, 238, 118, 255),
model = {"models/player/Group02/male_06.mdl"},
description = [[As a Fight Club Leader, Your job is to create fight clubs, and bring fight club members together to fight.]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "fightclubleader",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_FIGHTCLUBLEADER = DarkRP.createJob("Fight Club Member", {
color = Color(124, 238, 118, 255),
model = {"models/player/Group02/male_06.mdl", "models/player/Group02/male_04.mdl"},
description = [[As a Fight Club Member, Your job is to join Fight Clubs for money.]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "fightclubmember",
max = 5,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_RUSSIANMOBBOSS = DarkRP.createJob("Russian Mob Boss", {
color = Color(59, 59, 59, 255),
model = {"models/player/gman_high.mdl"},
description = [[As a Russian Mob Boss, your job is to create organized crime with your fellow mobsters.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "unarrest_stick"},
command = "russianmobboss",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
lvl = 26,
})
TEAM_SEWERMONSTER = DarkRP.createJob("Sewer Monster", {
color = Color(255, 90, 54, 255),
model = {"models/player/scarecrow.mdl", "models/player/freddykruger.mdl"},
description = [[As a Sewer Monster, your "job" is to kill anyone who enters into your territory, which is the sewers.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "m9k_knife"},
command = "sewermonster",
max = 2,
salary = 82,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_RUSSIANMOBSTER = DarkRP.createJob("Russian Mobster", {
color = Color(75, 75, 75, 255),
model = {
"models/player/Group03/Female_01.mdl",
"models/player/Group03/Female_02.mdl",
"models/player/Group03/Female_03.mdl",
"models/player/Group03/Female_04.mdl",
"models/player/Group03/Female_06.mdl",
"models/player/group03/male_01.mdl",
"models/player/Group03/Male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/Male_04.mdl",
"models/player/Group03/Male_05.mdl",
"models/player/Group03/Male_06.mdl",
"models/player/Group03/Male_07.mdl",
"models/player/Group03/Male_08.mdl",
"models/player/Group03/Male_09.mdl"
},
description = [[As a Russian Mobster, your job is to join organized crime with your fellow mobsters.]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "russianmobster",
max = 5,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
lvl = 5,
})
TEAM_ADMINONDUTY = DarkRP.createJob("Administrator On Duty", {
color = Color(255, 0, 0, 255),
model = {"models/player/combine_super_soldier.mdl"},
description = [[]],
weapons = {"arrest_stick", "weapon_arc_atmcard", "unarrest_stick", "m9k_sig_p229r", "stunstick", "door_ram", "weaponchecker"},
command = "adminonduty",
max = 12,
salary = 90,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "superadmin2", "admin", "operator"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You have to be an Administrator to have this job, you can apply at our website.",
})
TEAM_ATMHACKER = DarkRP.createJob("ATM Hacker", {
color = Color(55, 222, 161, 255),
model = {"models/player/dude.mdl"},
description = [[As an ATM hacker, your job is to hack atm's to get $$$$.]],
weapons = {"weapon_arc_atmcard", "weapon_arc_atmhack"},
command = "atmhacker",
max = 1,
salary = 74,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"vip", "vip+"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You have to be a VIP or a VIP+ to have this job, you can donate at http://www.premiumgamingcommunity.com",
})
TEAM_TERRORIST = DarkRP.createJob("Terrorist", {
color = Color(0, 0, 0, 255),
model = {"models/jessev92/player/misc/osamabl1.mdl"},
description = [[As a terrorist, every twenty minutes you are allowed to do /advert TERROR and kill anyone. You may ONLY do a TERROR for five minutes max. If you die, your TERROR ends.]],
weapons = {"weapon_arc_atmcard", "m9k_ak74", "weapon_jihadbomb"},
command = "terrorist",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"vip+"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You have to be a VIP+ to have this job, you can donate at http://www.premiumgamingcommunity.com",
})
TEAM_ADVANCEDSECURITY = DarkRP.createJob("Advanced Security", {
color = Color(255, 179, 0, 255),
model = {"models/player/teslapower.mdl", "models/player/lordvipes/bl_clance/crimsonlanceplayer.mdl", "models/player/security_suit.mdl"},
description = [[As a advanced security, your job is to offer your services to businesses, homes, and orginizations.]],
weapons = {"weapon_arc_atmcard", "m9k_f2000"},
command = "advsecurity",
max = 2,
salary = 115,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"vip+"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You have to be a VIP+ to have this job, you can donate at http://www.premiumgamingcommunity.com",
})
TEAM_PIRATE = DarkRP.createJob("Pirate", {
color = Color(64, 45, 1, 255),
model = {"models/player/jack_sparrow.mdl"},
description = [[As a pirate, your "job" is to fight other pirates in waterways. (You may fight only in the river, and ONLY with pirates)]],
weapons = {"weapon_arc_atmcard", "m9k_damascus", "m9k_harpoon"},
command = "pirate",
max = 5,
salary = 95,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"vip", "vip+"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You have to be a VIP or a VIP+ to have this job, you can donate at http://www.premiumgamingcommunity.com",
})
TEAM_MERC = DarkRP.createJob("Mercenary", {
color = Color(122, 55, 222, 255),
model = {"models/player/chris.mdl"},
description = [[As a Mercenary, Your job is to work for private individuals or corporations. Your protect those for money. "Gun for hire".]],
weapons = {"weapon_arc_atmcard", "m9k_bizonp19"},
command = "merc",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"vip", "vip+"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You have to be a VIP or a VIP+ to have this job, you can donate at http://www.premiumgamingcommunity.com",
})
TEAM_HGUN = DarkRP.createJob("Heavy Gun Dealer", {
color = Color(142, 25, 252, 255),
model = {"models/player/leon.mdl"},
description = [[As a Heavy Weapons dealer, your job is to sell high class/heavy damage weapons.]],
weapons = {"weapon_arc_atmcard"},
command = "hevwepsdealer",
max = 2,
salary = 105,
admin = 0,
vote = false,
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"vip", "vip+"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "You have to be a VIP or a VIP+ to have this job, you can donate at http://www.premiumgamingcommunity.com",
})
TEAM_SECRETSERVICE = DarkRP.createJob("Secret Service", {
color = Color(80, 55, 222, 255),
model = {"models/player/macdguy.mdl", "models/player/smith.mdl"},
description = [[As a Secret Service Agent, your job is to protect the mayor at ALL costs.]],
weapons = {"weapon_arc_atmcard", "m9k_uzi"},
command = "secretservice",
max = 2,
salary = 78,
admin = 0,
vote = true,
hasLicense = true,
lvl = 8,
})
TEAM_BMDEALER = DarkRP.createJob("Black Market Dealer", {
color = Color(99, 99, 99, 255),
model = {"models/player/sunabouzu.mdl"},
description = [[As a Black Market Dealer, you sell off the market weapons, utilities, and tools.]],
weapons = {"weapon_arc_atmcard"},
command = "blackmarketdealer",
max = 1,
salary = 78,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_TYCOONIST = DarkRP.createJob("Oil Tycoonist", {
color = Color(252, 213, 104, 255),
model = {"models/mark2580/viscera/vis_uborshik_p.mdl"},
description = [[As a Oil Tycoonist, Your job is to mine oil and sell it for money..]],
weapons = {"weapon_arc_atmcard"},
command = "oiltycoonist",
max = 3,
salary = 95,
admin = 0,
vote = false,
hasLicense = true,
})
TEAM_MECHANIC = DarkRP.createJob("Mechanic", {
color = Color(222, 25, 122, 255),
model = {"models/player/Group02/male_08.mdl"},
description = [[As a Mechanic, your job is to repair vehicles for money.]],
weapons = {"weapon_arc_atmcard", "vc_repair"},
command = "mechanic",
max = 1,
salary = 78,
admin = 0,
vote = false,
hasLicense = false,
})
if not DarkRP.disabledDefaults["modules"]["hungermod"] then
TEAM_COOK = DarkRP.createJob("Cook", {
color = Color(238, 99, 99, 255),
model = "models/player/mossman.mdl",
description = [[As a cook, it is your responsibility to feed the other members of your city.
You can spawn a microwave and sell the food you make:
/buymicrowave]],
weapons = {"weapon_arc_atmcard"},
command = "cook",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
cook = true
})
end
-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_GANG or -1
TEAM_MOB = TEAM_MOB or -1
TEAM_GUN = TEAM_GUN or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1
/*
--------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
The default door groups, can also be used as examples:
*/
AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_SWAT)
AddDoorGroup("Gundealer only", TEAM_GUN)
AddDoorGroup("Bank Officials only", TEAM_BANKER, TEAM_BANKGUARD)
/*
--------------------------------------------------------
HOW TO MAKE AN AGENDA
--------------------------------------------------------
AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
The default agenda's, can also be used as examples:
*/
AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE, TEAM_SWAT})
AddAgenda("Russian Mobster's agenda", TEAM_RUSSIANMOBSTER, {TEAM_RUSSIANMOBBOSS})
/*
---------------------------------------------------------------------------
HOW TO MAKE A GROUP CHAT
---------------------------------------------------------------------------
Pick one!
GAMEMODE:AddGroupChat(List of team variables separated by comma)
or
GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
This one is for people who know how to script Lua.
*/
GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)
GAMEMODE:AddGroupChat(TEAM_RUSSIANMOBSTER, TEAM_RUSSIANMOBBOSS)
GAMEMODE:AddGroupChat(TEAM_HITLER, TEAM_HITLERSS)
/*---------------------------------------------------------------------------
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_SWAT] = true,
[TEAM_SWATM] = true,
}
/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_HITMAN)
/*---------------------------------------------------------------------------
Default demote groups
---------------------------------------------------------------------------*/
DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
DarkRP Issues
-
- New to forums
- Posts: 4
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Fri Jul 04, 2014 3:54 pm
Re: DarkRP Issues
I also get this error:
Unknown command: rp_playermodel
Unknown command: _rp_ChosenModel
Unknown command: rp_playermodel
Unknown command: _rp_ChosenModel