Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*---------------------------------------------------------------------------
- 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:
- https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
- For examples and explanation please visit this wiki page:
- http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
- Add jobs under the following line:
- ---------------------------------------------------------------------------*/
- --- Free Jobs
- TEAM_CIVILIAN = AddExtraTeam("Civilian", {
- 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 Civilian is the most basic level of society you can hold
- besides being a hobo.
- You have no specific role in city life.]],
- weapons = { "weapon_fists", },
- command = "civilian",
- max = 0,
- salary = 50,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- mayorCanSetSalary = true
- })
- TEAM_HOBO = AddExtraTeam("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_fists", "weapon_angryhobo"},
- command = "hobo",
- max = 6,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- hobo = true,
- mayorCanSetSalary = false
- })
- TEAM_POLICE = AddExtraTeam("Civil Protection", {
- color = Color(25, 25, 170, 255),
- model = {"models/player/combine_soldier.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 his/her arrest.
- The Battering Ram can also unfreeze frozen props(if enabled).
- Type /wanted <name> to alert the public to the presence of a criminal.
- OR go to tab and warrant someone by clicking the warrant button]],
- weapons = { "weapon_fists", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "m9k_usp"},
- command = "cp",
- max = 7,
- salary = 100,
- admin = 0,
- vote = false,
- hasLicense = true,
- })
- TEAM_SWAT = AddExtraTeam("S.W.A.T", {
- color = Color(0, 102, 255, 255),
- model = "models/player/swat.mdl",
- description = [[You are a SWAT unit. You assist the government in attacks and
- government issued raids. Make sure to keep your guard up.]],
- weapons = { "weapon_fists", "stunstick", "arrest_stick", "unarrest_stick", "door_ram", "m9k_mp5sd"},
- command = "swat",
- max = 5,
- salary = 100,
- admin = 0,
- vote = true,
- hasLicense = true,
- })
- TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", {
- color = Color(20, 20, 255, 255),
- model = {"models/player/combine_soldier_prisonguard.mdl"},
- description = [[The Chief is the leader of the Civil Protection unit.
- 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 = { "weapon_fists", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "m9k_deagle"},
- command = "chief",
- max = 1,
- salary = 150,
- admin = 0,
- vote = true,
- hasLicense = true,
- chief = true,
- })
- TEAM_SPECOPS = AddExtraTeam("Spec Ops", {
- color = Color(0, 102, 255, 255),
- model = "models/player/gasmask.mdl",
- description = [[You are a Special Operations Unit, Your mission is to over-watch the operation or just the plain streets.
- VIP Only.]],
- weapons = { "weapon_fists", "stunstick", "arrest_stick", "unarrest_stick", "door_ram", "m9k_m24", "m9k_usp"},
- command = "specops",
- max = 3,
- salary = 150,
- admin = 0,
- vote = false,
- hasLicense = true,
- customCheck = function(ply) return CLIENT or ply:GetUserGroup("vip") == "vip" or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("vipmod") == "vipmod" or ply:GetUserGroup("vipadmin") == "vipadmin" end,
- CustomCheckFailMsg = "You need to be VIP to use this job!",
- })
- TEAM_MAYOR = AddExtraTeam("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
- Type /unlockdown to end a lockdown]],
- weapons = { "weapon_fists", },
- command = "mayor",
- max = 1,
- salary = 200,
- admin = 0,
- vote = true,
- hasLicense = false,
- mayor = true,
- PlayerDeath = function(ply, weapon, killer)
- if( ply:Team() == TEAM_MAYOR ) then
- ply:changeTeam( GAMEMODE.DefaultTeam, true )
- for k,v in pairs( player.GetAll() ) do
- v:PrintMessage( HUD_PRINTCENTER, "The mayor has been killed!" )
- end
- end
- end
- })
- TEAM_THIEF = AddExtraTeam("Thief", {
- color = Color(38, 38, 38, 255),
- model = "models/player/arctic.mdl",
- description = [[You are a Thief. You can work with a gang to try and rob people or work alone.]],
- weapons = { "weapon_fists", "lockpick"},
- command = "thief",
- max = 6,
- salary = 20,
- admin = 0,
- vote = false,
- hasLicense = false,
- })
- TEAM_MTHIEF = AddExtraTeam("Master Thief", {
- color = Color(47, 247, 78, 255),
- model = "models/player/arctic.mdl",
- description = [[You are an Master Thief. Years of training gave you the ability to picklock super fast!
- Just like other thieves, you can either join a gang or raid alone!
- VIP Job only!]],
- weapons = { "weapon_fists", "master_lockpick"},
- command = "mthief",
- max = 2,
- salary = 40,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:GetUserGroup("vip") == "vip" or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("vipmod") == "vipmod" or ply:GetUserGroup("vipadmin") == "vipadmin" end,
- CustomCheckFailMsg = "You need to be VIP to use this job!",
- })
- TEAM_GANGSTER = 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.
- Join a gang and follow your boss' orders.]],
- weapons = { "weapon_fists", },
- command = "gangster",
- max = 8,
- salary = 30,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_MOBBOSS = DarkRP.createJob("Mob Boss", {
- color = Color(25, 25, 25, 255),
- model = "models/player/gman_high.mdl",
- description = [[The mob boss is the boss of the gangsters 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.]],
- weapons = { "weapon_fists", "lockpick", "unarrest_stick"},
- command = "mobboss",
- max = 1,
- salary = 40,
- admin = 0,
- vote = false,
- hasLicense = false,
- })
- TEAM_GUN = AddExtraTeam("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 legally.
- However, make sure you only sell guns to people who have a gun license.
- Be sure to have a shop.]],
- weapons = { "weapon_fists", },
- command = "gundealer",
- max = 3,
- salary = 60,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_BLACK = AddExtraTeam("Black Market Dealer", {
- color = Color(255, 0, 63, 255),
- model = "models/player/eli.mdl",
- description = [[A Black Market Dealer is the main supplier for gangs. Be sure not to get caught by the police. You can't have a shop.]],
- weapons = { "weapon_fists", },
- command = "blackmarket",
- max = 2,
- salary = 20,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_GUARD = AddExtraTeam("Guard", {
- color = Color(0, 79, 119, 255),
- model = {"models/player/odessa.mdl"},
- description = [[You are a Guard. Help people guard their home/shop.]],
- weapons = { "weapon_fists", "stunstick"},
- command = "guard",
- max = 4,
- salary = 60,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_SPY = AddExtraTeam("Spy", {
- color = Color(0, 79, 119, 255),
- model = {"models/player/barney.mdl"},
- description = [[You are a spy! Get paid and spy on people!
- You can also get paid to raid players.
- You can't raid alone.
- Spies can't work for the government.]],
- weapons = { "weapon_fists", "climb_swep2"},
- command = "spy",
- max = 2,
- salary = 90,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:GetUserGroup("vip") == "vip" or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("vipmod") == "vipmod" or ply:GetUserGroup("vipadmin") == "vipadmin" end,
- CustomCheckFailMsg = "You need to be VIP to use this job!",
- })
- TEAM_MEDIC = AddExtraTeam("Medic", {
- 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.
- Help people only after a battle is over.]],
- weapons = { "weapon_fists", "weapon_medkit"},
- command = "medic",
- max = 2,
- salary = 100,
- admin = 0,
- vote = false,
- hasLicense = false,
- medic = true,
- })
- TEAM_HITMAN = AddExtraTeam("Hitman", {
- color = Color(236, 236, 7, 255),
- model = "models/player/leet.mdl",
- description = [[You are a Hitman.
- People pay you to kill people.
- Try not to be in Cops sight when you kill someone.
- Must use hitman system.]],
- weapons = { "weapon_fists", "m9k_knife"},
- command = "hitman",
- max = 2,
- salary = 40,
- admin = 0,
- vote = true,
- hasLicense = false,
- })
- TEAM_TERRORIST = AddExtraTeam("Terrorist", {
- color = Color(255, 51, 51, 255),
- model = {"models/player/guerilla.mdl"},
- description = [[You're a Terrorist, follow your leader and spread fear on the city.
- Take hostages and announce their capture.
- You can start a war against the government if they want to.
- You must do /advert before a Jihad, or bomb is planted.
- There is a 15 min cooldown on Jihad, and a 10 min on explosives.
- You can not kill in spawn, or be killed.
- VIP Only!]],
- weapons = { "weapon_fists", "lockpick"},
- command = "terrorist",
- max = 4,
- salary = 20,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:GetUserGroup("vip") == "vip" or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("vipmod") == "vipmod" or ply:GetUserGroup("vipadmin") == "vipadmin" end,
- CustomCheckFailMsg = "You need to be VIP to use this job!",
- candemote = true,
- })
- TEAM_TERRORISTLEADER = AddExtraTeam("Terrorist Leader", {
- color = Color(255, 51, 51, 255),
- model = {"models/player/guerilla.mdl"},
- description = [[You're the leader of the terrorist group.
- Plan attacks on the government, assault innocents and take them as hostages.
- You must do /advert before a Jihad, or bomb is planted.
- There is a 15 min cooldown on Jihad, and a 10 min on explosives.
- VIP Only!]],
- weapons = { "weapon_fists", "unarrest_stick", "lockpick", "keypad_cracker"},
- command = "terroristleader",
- max = 1,
- salary = 40,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:GetUserGroup("vip") == "vip" or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("vipmod") == "vipmod" or ply:GetUserGroup("vipadmin") == "vipadmin" end,
- CustomCheckFailMsg = "You need to be VIP to use this job!",
- candemote = true,
- })
- ---- Mod / Admin Jobs
- TEAM_MOD = AddExtraTeam("Moderator on Patrol", {
- color = Color(255, 51, 0, 255),
- model = "models/player/combine_super_soldier.mdl",
- description =
- [[
- You are an Moderator on Duty. You patrol the server and help
- people in need. RP does not apply to you but you cannot do anything
- that is part of RP. Moderator only.]],
- weapons = { "weapon_fists", "unarrest_stick"},
- command = "modduty",
- max = 0,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = true,
- customCheck = function(ply) return CLIENT or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("trialmod") == "trialmod" or ply:GetUserGroup("mod") == "mod" end,
- CustomCheckFailMsg = "This job is moderator and higher only!",
- help = {"You are a mod, do your job!"}
- })
- TEAM_ADMIN = AddExtraTeam("Admin on Patrol", {
- color = Color(255, 51, 0, 255),
- model = "models/player/combine_super_soldier.mdl",
- description =
- [[
- You are an Admin on Duty. You patrol the server and help
- people in need. RP does not apply to you but you cannot do anything
- that is part of RP. Admin only.]],
- weapons = { "weapon_fists", "admin_keypad", "unarrest_stick"},
- command = "adminduty",
- max = 0,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = true,
- customCheck = function(ply) return CLIENT or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("admin") == "admin" end,
- CustomCheckFailMsg = "This job is admin and higher only!",
- })
- /*---------------------------------------------------------------------------
- Define which team joining players spawn into and what team you change to if demoted
- ---------------------------------------------------------------------------*/
- GAMEMODE.DefaultTeam = TEAM_CIVILIAN
- /*---------------------------------------------------------------------------
- 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_SPECOPS] = true,
- }
- /*---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------*/
- DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement