Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.12 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. TEAM_THIEF = DarkRP.createJob("Thief", {
  21. color = Color(207, 207, 196, 255),
  22. model = {"models/player/arctic.mdl"},
  23. description = [[You are a thief.
  24. Raid = Yes
  25. Carjack = Yes
  26. Allowed Guns = All
  27. PdRaid = Yes
  28. Mug = No
  29. Kidnap = Yes
  30. ]],
  31. weapons = {"lockpick", "keypad_cracker"},
  32. command = "thief",
  33. max = 5,
  34. salary = 65,
  35. admin = 0,
  36. vote = false,
  37. hasLicense = false,
  38.  
  39. })
  40. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  41. color = Color(128, 128, 128, 255),
  42. model = {"models/player/leet.mdl"},
  43. description = [[An assassin, hired to kill.
  44. Raid = Yes (only if hit is in building)
  45. Carjack = No
  46. Allowed Guns = All
  47. PdRaid = No
  48. Mug = No
  49. Kidnap = No
  50. ]],
  51. weapons = {"bb_css_knife_alt"},
  52. command = "hitman",
  53. max = 2,
  54. salary = 50,
  55. admin = 0,
  56. vote = false,
  57. hasLicense = false,
  58.  
  59. })
  60. TEAM_POLICE = DarkRP.createJob("Civil Protection", {
  61. color = Color(25, 25, 170, 255),
  62. model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  63. description = [[Protector of the city
  64. Raid = No
  65. Carjack = No
  66. Allowed Guns = All
  67. PdRaid = No
  68. Mug = No
  69. Kidnap = No
  70. ]],
  71. weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker"},
  72. command = "cp",
  73. max = 4,
  74. salary = GAMEMODE.Config.normalsalary * 1.45,
  75. admin = 0,
  76. vote = true,
  77. hasLicense = true,
  78. ammo = {
  79. ["pistol"] = 100,
  80. }
  81. })
  82. TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
  83. color = Color(20, 20, 255, 255),
  84. model = "models/player/combine_soldier_prisonguard.mdl",
  85. description = [[Head of Civil Protection
  86. Raid = No
  87. Carjack = No
  88. Allowed Guns = All
  89. PdRaid = No
  90. Mug = No
  91. Kidnap = No
  92. ]],
  93. weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "m9k_m4a1", "stunstick", "door_ram", "weaponchecker"},
  94. command = "chief",
  95. max = 1,
  96. salary = GAMEMODE.Config.normalsalary * 1.67,
  97. admin = 0,
  98. vote = false,
  99. hasLicense = true,
  100. chief = true,
  101. NeedToChangeFrom = TEAM_POLICE,
  102. ammo = {
  103. ["pistol"] = 60,
  104. }
  105. })
  106. TEAM_ADMIN = DarkRP.createJob("Admin on Duty", {
  107. color = Color(255, 0, 0, 255),
  108. model = {"models/avengers/iron man/mark7_player.mdl"},
  109. description = [[Save the day!
  110. Raid = No
  111. Carjack = No
  112. Allowed Guns = None
  113. PdRaid = No
  114. Mug = No
  115. Kidnap = No
  116. ]],
  117. weapons = {},
  118. command = "admin",
  119. max = 0,
  120. salary = 0,
  121. admin = 0,
  122. vote = false,
  123. hasLicense = false,
  124.  
  125. customCheck = function(ply) return CLIENT or
  126. table.HasValue({"admin", "superadmin"}, ply:GetNWString("usergroup"))
  127. end,
  128. CustomCheckFailMsg = "You don't have the required rank to complete this action!",})
  129.  
  130. TEAM_MODERATOR = DarkRP.createJob("Moderator on Duty", {
  131. color = Color(255, 0, 0, 255),
  132. model = {"models/avengers/iron man/patriot_player.mdl"},
  133. description = [[Moderate people.
  134. Raid = No
  135. Carjack = No
  136. Allowed Guns = None
  137. PdRaid = No
  138. Mug = No
  139. Kidnap = No
  140. ]],
  141. weapons = {},
  142. command = "moderator",
  143. max = 0,
  144. salary = 0,
  145. admin = 0,
  146. vote = false,
  147. hasLicense = false,
  148. customCheck = function(ply) return
  149. table.HasValue({"superadmin", "admin", "moderator"}, ply:GetUserGroup())
  150. end,
  151. CustomCheckFailMsg = "You don't have the required rank to complete this action!",
  152. })
  153.  
  154.  
  155. --[[
  156. Custom Jobs Bellow Here
  157. --]]
  158.  
  159. --[[---------------------------------------------------------------------------
  160. Define which team joining players spawn into and what team you change to if demoted
  161. ---------------------------------------------------------------------------]]
  162. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  163.  
  164.  
  165. --[[---------------------------------------------------------------------------
  166. Define which teams belong to civil protection
  167. Civil protection can set warrants, make people wanted and do some other police related things
  168. ---------------------------------------------------------------------------]]
  169. GAMEMODE.CivilProtection = {
  170. [TEAM_POLICE] = true,
  171. [TEAM_CHIEF] = true,
  172. [TEAM_MAYOR] = true,
  173. }
  174.  
  175. --[[---------------------------------------------------------------------------
  176. Jobs that are hitmen (enables the hitman menu)
  177. ---------------------------------------------------------------------------]]
  178. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement