Advertisement
Guest User

Instant Reality

a guest
Jan 29th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.84 KB | None | 0 0
  1. /*---------------------------------------------------------------------------
  2. DarkRP custom jobs
  3. ---------------------------------------------------------------------------
  4.  
  5. This file contains your custom jobs.
  6. This file should also contain jobs from DarkRP that you edited.
  7.  
  8. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  9.     Once you've done that, copy and paste the job to this file and edit it.
  10.  
  11. The default jobs can be found here:
  12. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  13.  
  14. For examples and explanation please visit this wiki page:
  15. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  16.  
  17.  
  18. Add jobs under the following line:
  19. ---------------------------------------------------------------------------*/
  20.  
  21. --- Free Jobs
  22.  
  23. TEAM_CIVILIAN = AddExtraTeam("Civilian", {
  24.     color = Color(20, 150, 20, 255),
  25.     model = {
  26.         "models/player/Group01/Female_01.mdl",
  27.         "models/player/Group01/Female_02.mdl",
  28.         "models/player/Group01/Female_03.mdl",
  29.         "models/player/Group01/Female_04.mdl",
  30.         "models/player/Group01/Female_06.mdl",
  31.         "models/player/group01/male_01.mdl",
  32.         "models/player/Group01/Male_02.mdl",
  33.         "models/player/Group01/male_03.mdl",
  34.         "models/player/Group01/Male_04.mdl",
  35.         "models/player/Group01/Male_05.mdl",
  36.         "models/player/Group01/Male_06.mdl",
  37.         "models/player/Group01/Male_07.mdl",
  38.         "models/player/Group01/Male_08.mdl",
  39.         "models/player/Group01/Male_09.mdl"
  40.     },
  41.     description = [[The Civilian is the most basic level of society you can hold
  42.         besides being a hobo.
  43.         You have no specific role in city life.]],
  44.     weapons = { "weapon_fists", },
  45.     command = "civilian",
  46.     max = 0,
  47.     salary = 50,
  48.     admin = 0,
  49.     vote = false,
  50.     hasLicense = false,
  51.     candemote = false,
  52.     mayorCanSetSalary = true
  53. })
  54.  
  55. TEAM_HOBO = AddExtraTeam("Hobo", {
  56.     color = Color(80, 45, 0, 255),
  57.     model = "models/player/corpse1.mdl",
  58.     description = [[The lowest member of society. Everybody laughs at you.
  59.         You have no home.
  60.         Beg for your food and money
  61.         Sing for everyone who passes to get money
  62.         Make your own wooden home somewhere in a corner or
  63.         outside someone else's door]],
  64.     weapons = { "weapon_fists", "weapon_angryhobo"},
  65.     command = "hobo",
  66.     max = 6,
  67.     salary = 0,
  68.     admin = 0,
  69.     vote = false,
  70.     hasLicense = false,
  71.     candemote = false,
  72.     hobo = true,
  73.     mayorCanSetSalary = false
  74. })
  75.  
  76. TEAM_POLICE = AddExtraTeam("Civil Protection", {
  77.     color = Color(25, 25, 170, 255),
  78.     model = {"models/player/combine_soldier.mdl"},
  79.     description = [[The protector of every citizen that lives in the city .
  80.         You have the power to arrest criminals and protect innocents.
  81.         Hit a player with your arrest baton to put them in jail
  82.         Bash a player with a stunstick and they may learn to obey
  83.         the law.
  84.         The Battering Ram can break down the door of a criminal, with a warrant
  85.         for his/her arrest.
  86.         The Battering Ram can also unfreeze frozen props(if enabled).
  87.         Type /wanted <name> to alert the public to the presence of a criminal.
  88.         OR go to tab and warrant someone by clicking the warrant button]],
  89.     weapons = { "weapon_fists", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "m9k_usp"},
  90.     command = "cp",
  91.     max = 7,
  92.     salary = 100,
  93.     admin = 0,
  94.     vote = false,
  95.     hasLicense = true,
  96. })
  97.  
  98. TEAM_SWAT = AddExtraTeam("S.W.A.T", {
  99.     color = Color(0, 102, 255, 255),
  100.     model = "models/player/swat.mdl",
  101.     description = [[You are a SWAT unit. You assist the government in attacks and
  102.         government issued raids. Make sure to keep your guard up.]],
  103.     weapons = { "weapon_fists", "stunstick", "arrest_stick", "unarrest_stick", "door_ram", "m9k_mp5sd"},
  104.     command = "swat",
  105.     max = 5,
  106.     salary = 100,
  107.     admin = 0,
  108.     vote = true,
  109.     hasLicense = true,
  110. })
  111.  
  112. TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", {
  113.     color = Color(20, 20, 255, 255),
  114.     model = {"models/player/combine_soldier_prisonguard.mdl"},
  115.     description = [[The Chief is the leader of the Civil Protection unit.
  116.         Coordinate the police force to enforce law in the city.
  117.         Hit a player with arrest baton to put them in jail.
  118.         Bash a player with a stunstick and they may learn to
  119.         obey the law.
  120.         The Battering Ram can break down the door of a criminal, with a
  121.         warrant for his/her arrest.
  122.         Type /wanted <name> to alert the public to the presence of a criminal.
  123.         Type /jailpos to set the Jail Position]],
  124.     weapons = { "weapon_fists", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "m9k_deagle"},
  125.     command = "chief",
  126.     max = 1,
  127.     salary = 150,
  128.     admin = 0,
  129.     vote = true,
  130.     hasLicense = true,
  131.     chief = true,
  132. })
  133.  
  134. TEAM_SPECOPS = AddExtraTeam("Spec Ops", {
  135.     color = Color(0, 102, 255, 255),
  136.     model = "models/player/gasmask.mdl",
  137.     description = [[You are a Special Operations Unit, Your mission is to over-watch the operation or just the plain streets.
  138.         VIP Only.]],
  139.     weapons = { "weapon_fists", "stunstick", "arrest_stick", "unarrest_stick", "door_ram", "m9k_m24", "m9k_usp"},
  140.     command = "specops",
  141.     max = 3,
  142.     salary = 150,
  143.     admin = 0,
  144.     vote = false,
  145.     hasLicense = true,
  146.     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,
  147.     CustomCheckFailMsg = "You need to be VIP to use this job!",
  148. })
  149.  
  150. TEAM_MAYOR = AddExtraTeam("Mayor", {
  151.     color = Color(150, 20, 20, 255),
  152.     model = "models/player/breen.mdl",
  153.     description = [[The Mayor of the city creates laws to govern the city.
  154.         If you are the mayor you may create and accept warrants.
  155.         Type /wanted <name>  to warrant a player
  156.         Type /jailpos to set the Jail Position
  157.         Type /lockdown initiate a lockdown of the city.
  158.         Everyone must be inside during a lockdown.
  159.         The cops patrol the area
  160.         Type /unlockdown to end a lockdown]],
  161.     weapons = { "weapon_fists", },
  162.     command = "mayor",
  163.     max = 1,
  164.     salary = 200,
  165.     admin = 0,
  166.     vote = true,
  167.     hasLicense = false,
  168.     mayor = true,
  169.                 PlayerDeath = function(ply, weapon, killer)
  170.                 if( ply:Team() == TEAM_MAYOR ) then
  171.                         ply:changeTeam( GAMEMODE.DefaultTeam, true )
  172.                         for k,v in pairs( player.GetAll() ) do
  173.                                 v:PrintMessage( HUD_PRINTCENTER, "The mayor has been killed!" )
  174.                         end
  175.                 end
  176.         end
  177. })
  178.  
  179. TEAM_THIEF = AddExtraTeam("Thief", {
  180.     color = Color(38, 38, 38, 255),
  181.     model = "models/player/arctic.mdl",
  182.     description = [[You are a Thief. You can work with a gang to try and rob people or work alone.]],
  183.     weapons = { "weapon_fists", "lockpick"},
  184.     command = "thief",
  185.     max = 6,
  186.     salary = 20,
  187.     admin = 0,
  188.     vote = false,
  189.     hasLicense = false,
  190. })
  191.  
  192. TEAM_MTHIEF = AddExtraTeam("Master Thief", {
  193.     color = Color(47, 247, 78, 255),
  194.     model = "models/player/arctic.mdl",
  195.     description = [[You are an Master Thief. Years of training gave you the ability to picklock super fast!
  196.         Just like other thieves, you can either join a gang or raid alone!
  197.         VIP Job only!]],
  198.     weapons = { "weapon_fists", "master_lockpick"},
  199.     command = "mthief",
  200.     max = 2,
  201.     salary = 40,
  202.     admin = 0,
  203.     vote = false,
  204.     hasLicense = false,
  205.     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,
  206.     CustomCheckFailMsg = "You need to be VIP to use this job!",
  207. })
  208.  
  209. TEAM_GANGSTER = DarkRP.createJob("Gangster", {
  210.     color = Color(75, 75, 75, 255),
  211.     model = {
  212.         "models/player/Group03/Female_01.mdl",
  213.         "models/player/Group03/Female_02.mdl",
  214.         "models/player/Group03/Female_03.mdl",
  215.         "models/player/Group03/Female_04.mdl",
  216.         "models/player/Group03/Female_06.mdl",
  217.         "models/player/group03/male_01.mdl",
  218.         "models/player/Group03/Male_02.mdl",
  219.         "models/player/Group03/male_03.mdl",
  220.         "models/player/Group03/Male_04.mdl",
  221.         "models/player/Group03/Male_05.mdl",
  222.         "models/player/Group03/Male_06.mdl",
  223.         "models/player/Group03/Male_07.mdl",
  224.         "models/player/Group03/Male_08.mdl",
  225.         "models/player/Group03/Male_09.mdl"},
  226.     description = [[The lowest person of crime.
  227.         Join a gang and follow your boss' orders.]],
  228.     weapons = { "weapon_fists", },
  229.     command = "gangster",
  230.     max = 8,
  231.     salary = 30,
  232.     admin = 0,
  233.     vote = false,
  234.     hasLicense = false
  235. })
  236.  
  237. TEAM_MOBBOSS = DarkRP.createJob("Mob Boss", {
  238.     color = Color(25, 25, 25, 255),
  239.     model = "models/player/gman_high.mdl",
  240.     description = [[The mob boss is the boss of the gangsters in the city.
  241.         With his power he coordinates the gangsters and forms an efficient crime organization.
  242.         He has the ability to break into houses by using a lockpick.]],
  243.     weapons = { "weapon_fists", "lockpick", "unarrest_stick"},
  244.     command = "mobboss",
  245.     max = 1,
  246.     salary = 40,
  247.     admin = 0,
  248.     vote = false,
  249.    hasLicense = false,
  250.  
  251. })
  252.  
  253. TEAM_GUN = AddExtraTeam("Gun Dealer", {
  254.     color = Color(255, 140, 0, 255),
  255.     model = "models/player/monk.mdl",
  256.     description = [[A Gun Dealer is the only person who can sell guns to other
  257.         people legally.
  258.         However, make sure you only sell guns to people who have a gun license.
  259.         Be sure to have a shop.]],
  260.     weapons = { "weapon_fists", },
  261.     command = "gundealer",
  262.     max = 3,
  263.     salary = 60,
  264.     admin = 0,
  265.     vote = false,
  266.     hasLicense = false
  267. })
  268.  
  269. TEAM_BLACK = AddExtraTeam("Black Market Dealer", {
  270.     color = Color(255, 0, 63, 255),
  271.     model = "models/player/eli.mdl",
  272.     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.]],
  273.     weapons = { "weapon_fists", },
  274.     command = "blackmarket",
  275.     max = 2,
  276.     salary = 20,
  277.     admin = 0,
  278.     vote = false,
  279.     hasLicense = false
  280. })
  281.  
  282. TEAM_GUARD = AddExtraTeam("Guard", {
  283.     color = Color(0, 79, 119, 255),
  284.     model = {"models/player/odessa.mdl"},
  285.     description = [[You are a Guard. Help people guard their home/shop.]],
  286.     weapons = { "weapon_fists", "stunstick"},
  287.     command = "guard",
  288.     max = 4,
  289.     salary = 60,
  290.     admin = 0,
  291.     vote = false,
  292.     hasLicense = false
  293. })
  294.  
  295. TEAM_SPY = AddExtraTeam("Spy", {
  296.     color = Color(0, 79, 119, 255),
  297.     model = {"models/player/barney.mdl"},
  298.     description = [[You are a spy! Get paid and spy on people!
  299.         You can also get paid to raid players.
  300.         You can't raid alone.
  301.         Spies can't work for the government.]],
  302.     weapons = { "weapon_fists", "climb_swep2"},
  303.     command = "spy",
  304.     max = 2,
  305.     salary = 90,
  306.     admin = 0,
  307.     vote = false,
  308.     hasLicense = false,
  309.     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,
  310.     CustomCheckFailMsg = "You need to be VIP to use this job!",
  311. })
  312.  
  313. TEAM_MEDIC = AddExtraTeam("Medic", {
  314.     color = Color(47, 79, 79, 255),
  315.     model = "models/player/kleiner.mdl",
  316.     description = [[With your medical knowledge,
  317.         you work to restore players to full health.
  318.         Without a medic, people cannot be healed.
  319.         Help people only after a battle is over.]],
  320.     weapons = { "weapon_fists", "weapon_medkit"},
  321.     command = "medic",
  322.     max = 2,
  323.     salary = 100,
  324.     admin = 0,
  325.     vote = false,
  326.     hasLicense = false,
  327.     medic = true,
  328. })
  329.  
  330. TEAM_HITMAN = AddExtraTeam("Hitman", {
  331.     color = Color(236, 236, 7, 255),
  332.     model = "models/player/leet.mdl",
  333.     description = [[You are a Hitman.
  334.         People pay you to kill people.
  335.         Try not to be in Cops sight when you kill someone.
  336.         Must use hitman system.]],
  337.     weapons = { "weapon_fists", "m9k_knife"},
  338.     command = "hitman",
  339.     max = 2,
  340.     salary = 40,
  341.     admin = 0,
  342.     vote = true,
  343.     hasLicense = false,
  344. })
  345.  
  346. TEAM_TERRORIST = AddExtraTeam("Terrorist", {
  347.     color = Color(255, 51, 51, 255),
  348.     model = {"models/player/guerilla.mdl"},
  349.     description = [[You're a Terrorist, follow your leader and spread fear on the city.
  350.         Take hostages and announce their capture.
  351.         You can start a war against the government if they want to.
  352.         You must do /advert before a Jihad, or bomb is planted.
  353.         There is a 15 min cooldown on Jihad, and a 10 min on explosives.
  354.         You can not kill in spawn, or be killed.
  355.         VIP Only!]],
  356.     weapons = { "weapon_fists", "lockpick"},
  357.     command = "terrorist",
  358.     max = 4,
  359.     salary = 20,
  360.     admin = 0,
  361.     vote = false,
  362.     hasLicense = false,
  363.     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,
  364.     CustomCheckFailMsg = "You need to be VIP to use this job!",
  365.     candemote = true,
  366. })
  367.  
  368. TEAM_TERRORISTLEADER = AddExtraTeam("Terrorist Leader", {
  369.     color = Color(255, 51, 51, 255),
  370.     model = {"models/player/guerilla.mdl"},
  371.     description = [[You're the leader of the terrorist group.
  372.         Plan attacks on the government, assault innocents and take them as hostages.
  373.         You must do /advert before a Jihad, or bomb is planted.
  374.         There is a 15 min cooldown on Jihad, and a 10 min on explosives.
  375.         VIP Only!]],
  376.     weapons = { "weapon_fists", "unarrest_stick", "lockpick", "keypad_cracker"},
  377.     command = "terroristleader",
  378.     max = 1,
  379.     salary = 40,
  380.     admin = 0,
  381.     vote = false,
  382.     hasLicense = false,
  383.     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,
  384.     CustomCheckFailMsg = "You need to be VIP to use this job!",
  385.     candemote = true,
  386. })
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393. ---- Mod / Admin Jobs
  394.  
  395. TEAM_MOD = AddExtraTeam("Moderator on Patrol", {
  396.     color = Color(255, 51, 0, 255),
  397.     model = "models/player/combine_super_soldier.mdl",
  398.     description =
  399.         [[
  400.         You are an Moderator on Duty. You patrol the server and help
  401.         people in need. RP does not apply to you but you cannot do anything
  402.         that is part of RP. Moderator only.]],
  403.     weapons = { "weapon_fists", "unarrest_stick"},
  404.     command = "modduty",
  405.     max = 0,
  406.     salary = 0,
  407.     admin = 0,
  408.     vote = false,
  409.     hasLicense = true,
  410.     customCheck = function(ply) return CLIENT or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("trialmod") == "trialmod" or ply:GetUserGroup("mod") == "mod" end,
  411.     CustomCheckFailMsg = "This job is moderator and higher only!",
  412.     help = {"You are a mod, do your job!"}
  413. })
  414.  
  415. TEAM_ADMIN = AddExtraTeam("Admin on Patrol", {
  416.     color = Color(255, 51, 0, 255),
  417.     model = "models/player/combine_super_soldier.mdl",
  418.     description =
  419.         [[
  420.         You are an Admin on Duty. You patrol the server and help
  421.         people in need. RP does not apply to you but you cannot do anything
  422.         that is part of RP. Admin only.]],
  423.     weapons = { "weapon_fists", "admin_keypad", "unarrest_stick"},
  424.     command = "adminduty",
  425.     max = 0,
  426.     salary = 0,
  427.     admin = 0,
  428.     vote = false,
  429.     hasLicense = true,
  430.     customCheck = function(ply) return CLIENT or ply:GetUserGroup("superadmin") == "superadmin" or ply:GetUserGroup("admin") == "admin" end,
  431.     CustomCheckFailMsg = "This job is admin and higher only!",
  432.        
  433. })
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440. /*---------------------------------------------------------------------------
  441. Define which team joining players spawn into and what team you change to if demoted
  442. ---------------------------------------------------------------------------*/
  443. GAMEMODE.DefaultTeam = TEAM_CIVILIAN
  444.  
  445.  
  446. /*---------------------------------------------------------------------------
  447. Define which teams belong to civil protection
  448. Civil protection can set warrants, make people wanted and do some other police related things
  449. ---------------------------------------------------------------------------*/
  450. GAMEMODE.CivilProtection = {
  451.     [TEAM_POLICE] = true,
  452.     [TEAM_CHIEF] = true,
  453.     [TEAM_MAYOR] = true,
  454.     [TEAM_SWAT] = true,
  455.     [TEAM_SPECOPS] = true,
  456. }
  457.  
  458. /*---------------------------------------------------------------------------
  459. Jobs that are hitmen (enables the hitman menu)
  460. ---------------------------------------------------------------------------*/
  461. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement