Advertisement
Guest User

jobs.lua

a guest
Aug 31st, 2015
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.50 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_COP = DarkRP.createJob("Police Officer", {
  21. color = Color(0, 71, 255, 255),
  22. model = {"models/player/uk_police/uk_police_09.mdl"},
  23. description = [[A member of the police force, you protect and serve]],
  24. weapons = {weapon_357},
  25. command = "cop",
  26. max = 5,
  27. salary = 100,
  28. admin = 0,
  29. vote = false,
  30. hasLicense = true,
  31. candemote = false,
  32. -- CustomCheck
  33. medic = false,
  34. chief = false,
  35. mayor = false,
  36. hobo = false,
  37. cook = false,
  38. })
  39.  
  40. TEAM_SEARGENT = DarkRP.createJob("Police Seargent", {
  41. color = Color(0, 132, 255, 255),
  42. model = {"models/player/uk_police/uk_police_02.mdl"},
  43. description = [[The head of the police force]],
  44. weapons = {bb_glock_alt},
  45. command = "searg",
  46. max = 1,
  47. salary = 150,
  48. admin = 0,
  49. vote = false,
  50. hasLicense = true,
  51. candemote = false,
  52. -- CustomCheck
  53. medic = false,
  54. chief = true,
  55. mayor = false,
  56. hobo = false,
  57. cook = false,
  58. })
  59.  
  60. TEAM_REBEL = DarkRP.createJob("Rebel", {
  61. color = Color(124, 124, 124, 255),
  62. model = {"models/player/Group03/male_04.mdl"},
  63. description = [[A criminal]],
  64. weapons = {},
  65. command = "rebel",
  66. max = 4,
  67. salary = 5,
  68. admin = 0,
  69. vote = false,
  70. hasLicense = false,
  71. candemote = false,
  72. -- CustomCheck
  73. medic = false,
  74. chief = false,
  75. mayor = false,
  76. hobo = false,
  77. cook = false,
  78. })
  79.  
  80. TEAM_HITMAN = DarkRP.createJob("Hitman", {
  81. color = Color(255, 214, 0, 255),
  82. model = {"models/player/guerilla.mdl"},
  83. description = [[You are paid to kill.]],
  84. weapons = {},
  85. command = "hitman",
  86. max = 1,
  87. salary = 20,
  88. admin = 0,
  89. vote = false,
  90. hasLicense = false,
  91. candemote = false,
  92. -- CustomCheck
  93. medic = false,
  94. chief = false,
  95. mayor = false,
  96. hobo = false,
  97. cook = false,
  98. })
  99.  
  100. TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
  101. color = Color(127, 0, 255, 255),
  102. model = {"models/player/phoenix.mdl"},
  103. description = [[You sell illegal goods to the public]],
  104. weapons = {},
  105. command = "bmd",
  106. max = 2,
  107. salary = 50,
  108. admin = 0,
  109. vote = true,
  110. hasLicense = false,
  111. candemote = true,
  112. -- CustomCheck
  113. medic = false,
  114. chief = false,
  115. mayor = false,
  116. hobo = false,
  117. cook = false,
  118. })
  119.  
  120. TEAM_SWAT = DarkRP.createJob("SWAT", {
  121. color = Color(178, 0, 0, 255),
  122. model = {"models/player/swat.mdl"},
  123. description = [[You are heavy forces used when the police are not enough]],
  124. weapons = {bb_m4a1_alt},
  125. command = "swat",
  126. max = 3,
  127. salary = 150,
  128. admin = 0,
  129. vote = true,
  130. hasLicense = true,
  131. candemote = true,
  132. -- CustomCheck
  133. medic = false,
  134. chief = false,
  135. mayor = false,
  136. hobo = false,
  137. cook = false,
  138. customCheck = function(ply) return ply:GetNWString("vip") == "donator" end
  139. })
  140.  
  141. --[[---------------------------------------------------------------------------
  142. Define which team joining players spawn into and what team you change to if demoted
  143. ---------------------------------------------------------------------------]]
  144. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  145.  
  146.  
  147. --[[---------------------------------------------------------------------------
  148. Define which teams belong to civil protection
  149. Civil protection can set warrants, make people wanted and do some other police related things
  150. ---------------------------------------------------------------------------]]
  151. GAMEMODE.CivilProtection = {
  152. [TEAM_COP] = true,
  153. [TEAM_SEARGENT] = true,
  154. [TEAM_MAYOR] = true,
  155. }
  156.  
  157. --[[---------------------------------------------------------------------------
  158. Jobs that are hitmen (enables the hitman menu)
  159. ---------------------------------------------------------------------------]]
  160. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement