Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 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. //Created using DeaDeye's Classmaker
  21. TEAM_BATMAN = AddExtraTeam("Batman", Color(255, 255, 255, 255), "models/player/batmandesertstorm.mdl", [[Batman]], {}, "batman", 1, 500, 2, false, true, false)
  22.  
  23. TEAM_THIEF = AddExtraTeam("Thief", Color(153, 102, 0, 255)DarkRP.createJob("Thief", {
  24. color = Color(0, 0, 0, 255),
  25. model = "models/player/robber.mdl",
  26. description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
  27. weapons = {"lockpick"}, -- You may wanna find a pickpocket swep and add it here.
  28. command = "thief",
  29. max = 2,
  30. salary = 65,
  31. admin = 0,
  32. vote = false,
  33. hasLicense = false
  34. })
  35.  
  36. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  37. color = Color(0, 0, 0, 255),
  38. model = "models/player/sunabouzu.mdl",
  39. description = [[People hire you to take out other people,
  40. this job require you to be completely focussed.
  41. A single breath can make you loose a shot.]],
  42. weapons = {"m9k_m24"},
  43. command = "hitman",
  44. max = 1,
  45. salary = 65,
  46. admin = 0,
  47. vote = false,
  48. hasLicense = false
  49. })
  50.  
  51. TEAM_SS = AddExtraTeam("TEAM_SS", Color(153, 102, 0, 255)DarkRP.createJob("Secret Service", {
  52. color = Color(100, 20, 20, 255),
  53. model = "models/player/macdguy.mdl",
  54. description = [[You are responsible for protecting the mayor.
  55. Take care of the old fellow, he is vanuarable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
  56. weapons = {"weapon_deagle2", "stunstick", "weaponchecker"},
  57. command = "ss",
  58. max = 2,
  59. salary = 65,
  60. admin = 0,
  61. vote = true,
  62. hasLicense = false,
  63. ammo = {
  64. ["pistol"] = 60,
  65. }
  66.  
  67. TEAM_SWAT = AddExtraTeam("TEAM_SWAT", Color(153, 102, 0, 255)
  68. DarkRP.createJob("Swat", {
  69. color = Color(25, 25, 170, 255),
  70. model = {"models/player/swat.mdl"},
  71. description = [[The protector of every citizen that lives in the city.
  72. You have the power to arrest criminals and protect innocents.
  73. Hit a player with your arrest baton to put them in jail.
  74. Bash a player with a stunstick and they may learn to obey the law.
  75. The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  76. The Battering Ram can also unfreeze frozen props (if enabled).
  77. Type /wanted <name> to alert the public to the presence of a criminal.]],
  78. weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
  79. command = "Swat",
  80. max = 4,
  81. salary = 85,
  82. admin = 0,
  83. vote = true,
  84. hasLicense = true,
  85. help = {
  86. "Please don't abuse your job",
  87. "When you arrest someone they are auto transported to jail.",
  88. "They are auto let out of jail after some time",
  89. "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
  90. "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
  91. "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
  92. "Type /jailpos to set the jail position"
  93. }
  94. })
  95.  
  96. TEAM_ADMIN = AddExtraTeam("TEAM_admin", Color(153, 102, 0, 255)
  97. DarkRP.createJob("Admin On Duty", {
  98. color = Color(170, 0, 0, 255),
  99. model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
  100. description = [[Admin on duty is when you as an admin, is ready to make sure the server stays at its best.
  101. It's up to you to patrol and respond to admin calls.]],
  102. weapons = {},
  103. command = "aod",
  104. max = 0,
  105. salary = 100,
  106. admin = 0,
  107. vote = false,
  108. hasLicense = false,
  109. customCheck = function(ply) return ply:GetUserGroup() == "Admin" end,
  110.  
  111. })
  112. TEAM_DRUGGY = AddExtraTeam("TEAM_DRUGGY", Color(153, 102, 0, 255)
  113. DarkRP.createJob("Drug Dealer", {
  114. color = Color(51, 204, 255, 255),
  115. model = "models/player/Kleiner.mdl",
  116. description = [[You deal drugs to those in need.
  117. Be careful, may get arrested if caught in the act!]],
  118. weapons = {},
  119. command = "drug",
  120. max = 2,
  121. salary = 65,
  122. admin = 0,
  123. vote = false,
  124. hasLicense = false
  125. })
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132. /*---------------------------------------------------------------------------
  133. Define which team joining players spawn into and what team you change to if demoted
  134. ---------------------------------------------------------------------------*/
  135. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  136.  
  137.  
  138. /*---------------------------------------------------------------------------
  139. Define which teams belong to civil protection
  140. Civil protection can set warrants, make people wanted and do some other police related things
  141. ---------------------------------------------------------------------------*/
  142. GAMEMODE.CivilProtection = {
  143. [TEAM_POLICE] = true,
  144. [TEAM_CHIEF] = true,
  145. [TEAM_MAYOR] = true,
  146. [TEAM_SS] = true,
  147. [TEAM_ADMIN] = true,
  148. [TEAM_SWAT] = true
  149.  
  150. }
  151.  
  152. /*---------------------------------------------------------------------------
  153. Jobs that are hitmen (enables the hitman menu)
  154. ---------------------------------------------------------------------------*/
  155. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement