Guest User

Jobs.lua Hitman not working

a guest
May 15th, 2014
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 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. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  22. color = Color(0, 0, 0, 255),
  23. model = {
  24. "models/player/barney.mdl",
  25. },
  26. description = [[You are a Hitman. People give you cash to kill someone.
  27. However, use must use the hitman system or you are fail hitman.]],
  28. weapons = {"m9k_m24", "m9k_glock"},
  29. command = "hitman",
  30. max = 2,
  31. salary = 45,
  32. admin = 0,
  33. vote = false,
  34. hasLicense = false,
  35. })
  36.  
  37. TEAM_CUSTOM = AddExtraTeam("Pro Thief", {
  38. color = Color (255,0,0,255),
  39. model = {
  40. "models/player/Phoenix.mdl",
  41. "models//player/arctic.mdl"
  42. },
  43. description = [[...]],
  44. weapons = {"pro_lockpick_update", "keypad_cracker_pro"},
  45. command = "prothief",
  46. max = 4,
  47. salary = 20,
  48. admin = 0,
  49. maxpocket = 25,
  50. vote = false,
  51. haslicense = false,
  52. customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "donator" or ply:GetNWString("usergroup") == "admin" or ply:GetNWString("usergroup") == "superadmin" end,
  53. CustomCheckFailMsg = "This Job Is Donator Only!",
  54. })
  55.  
  56. TEAM_THIEF = AddExtraTeam("Thief", {
  57. color = Color (200,0,0,255),
  58. model = {
  59. "models/player/Phoenix.mdl",
  60. "models//player/arctic.mdl"
  61. },
  62. description = [[...]],
  63. weapons = {"lockpick", "keypad_cracker"},
  64. command = "thief",
  65. max = 6,
  66. salary = 5,
  67. admin = 0,
  68. maxpocket = 20,
  69. vote = false,
  70. haslicense = false,
  71. })
  72.  
  73. TEAM_CUSTOM = AddExtraTeam("Parkour", {
  74. color = Color (2,132,130,255),
  75. model = {
  76. "models/player/Group03/Female_01.mdl",
  77. "models/player/Group03/Female_02.mdl",
  78. "models/player/Group03/Female_03.mdl",
  79. "models/player/Group03/Female_04.mdl",
  80. "models/player/Group03/Female_06.mdl",
  81. "models/player/Group03/Female_07.mdl",
  82. "models/player/Group03/Male_01.mdl",
  83. "models/player/Group03/male_02.mdl",
  84. "models/player/Group03/male_03.mdl",
  85. "models/player/Group03/Male_04.mdl",
  86. "models/player/Group03/Male_05.mdl",
  87. "models/player/Group03/male_06.mdl",
  88. "models/player/Group03/male_07.mdl",
  89. "models/player/Group03/male_08.mdl",
  90. "models/player/Group03/male_09.mdl"
  91. },
  92. description = [[...]],
  93. weapons = {"climb_swep2"},
  94. command = "parkour",
  95. max = 6,
  96. salary = 5,
  97. admin = 0,
  98. maxpocket = 15,
  99. vote = false,
  100. haslicense = false,
  101. })
  102.  
  103. TEAM_BLOODZM = AddExtraTeam("Bloodz Member", {
  104. color = Color (200,0,0,255),
  105. model = {
  106. "models/player/bloodz/slow_1.mdl",
  107. "models/player/bloodz/slow_3.mdl"
  108. },
  109. description = [[...]],
  110. weapons = {"m9k_glock"},
  111. command = "bloodzm",
  112. max = 4,
  113. salary = 10,
  114. admin = 0,
  115. maxpocket = 15,
  116. vote = false,
  117. haslicense = false,
  118. })
  119.  
  120. TEAM_BLOODZL = AddExtraTeam("Bloodz Leader", {
  121. color = Color (200,0,0,255),
  122. model = {
  123. "models/player/bloodz/slow_2.mdl"
  124. },
  125. description = [[...]],
  126. weapons = {"m9k_glock"},
  127. command = "bloodzl",
  128. max = 1,
  129. salary = 10,
  130. admin = 0,
  131. maxpocket = 15,
  132. vote = false,
  133. haslicense = false,
  134. })
  135.  
  136. TEAM_CRIPZM = AddExtraTeam("Cripz Member", {
  137. color = Color (200,0,0,255),
  138. model = {
  139. "models/player/cripz/slow_1.mdl",
  140. "models/player/cripz/slow_3.mdl"
  141. },
  142. description = [[...]],
  143. weapons = {"m9k_glock"},
  144. command = "cripzm",
  145. max = 4,
  146. salary = 10,
  147. admin = 0,
  148. maxpocket = 15,
  149. vote = false,
  150. haslicense = false,
  151. })
  152.  
  153. TEAM_CRIPZL = AddExtraTeam("Cripz Leader", {
  154. color = Color (200,0,0,255),
  155. model = {
  156. "models/player/cripz/slow_2.mdl"
  157. },
  158. description = [[...]],
  159. weapons = {"m9k_glock"},
  160. command = "cripzl",
  161. max = 1,
  162. salary = 10,
  163. admin = 0,
  164. maxpocket = 15,
  165. vote = false,
  166. haslicense = false,
  167. })
  168.  
  169. /*---------------------------------------------------------------------------
  170. Define which team joining players spawn into and what team you change to if demoted
  171. ---------------------------------------------------------------------------*/
  172. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  173.  
  174.  
  175. /*---------------------------------------------------------------------------
  176. Define which teams belong to civil protection
  177. Civil protection can set warrants, make people wanted and do some other police related things
  178. ---------------------------------------------------------------------------*/
  179. GAMEMODE.CivilProtection = {
  180. [TEAM_POLICE] = true,
  181. [TEAM_CHIEF] = true,
  182. [TEAM_MAYOR] = true,
  183. }
  184.  
  185. /*---------------------------------------------------------------------------
  186. Jobs that are hitmen (enables the hitman menu)
  187. ---------------------------------------------------------------------------*/
  188. DarkRP.addHitmanTeam(TEAM_CITIZEN)
Advertisement
Add Comment
Please, Sign In to add comment