Advertisement
Guest User

d

a guest
Aug 12th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 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_CITIZEN = DarkRP.createJob("Citizen", {
  21. color = Color(240, 230, 230, 255),
  22. model = {
  23. "models/player/Group01/male_01.mdl",
  24. "models/player/Group01/male_02.mdl",
  25. "models/player/Group01/male_03.mdl",
  26. "models/player/Group01/male_04.mdl",
  27. "models/player/Group01/male_05.mdl",
  28. "models/player/Group01/male_06.mdl",
  29. "models/player/Group01/male_07.mdl",
  30. "models/player/Group01/male_08.mdl",
  31. "models/player/Group02/male_04.mdl",
  32. "models/player/Group02/male_06.mdl"
  33. },
  34. description = [[You the Citizen are the lowest role of this society, get a fucking job.
  35. You cannot raid.
  36. You cannot Mug.
  37. You can only kill in self-defense.]],
  38. weapons = {},
  39. command = "job citizen",
  40. max = 0,
  41. salary = 200,
  42. admin = 0,
  43. vote = false,
  44. hasLicense = false,
  45. candemote = false,
  46. category = "Jobs"
  47. })
  48. TEAM_HEAVYARMSGUNDEALER = DarkRP.createJob("Heavy Gun Arms Dealer", {
  49. color = Color(250, 255, 0, 255),
  50. model = {"models/player/monk.mdl"},
  51. description = [[You are the supplier of Heavy Ordinance for the server. Due to this you"re weapons are at a higher cost resulting in you having to sell guns at a higher mark up.
  52. You cannot Raid.
  53. You cannot Mug.
  54. You can only kill in self-defense.]],
  55. weapons = {},
  56. command = "job heavy arms gundealer",
  57. max = 1,
  58. salary = 498,
  59. admin = 0,
  60. vote = false,
  61. hasLicense = true,
  62. candemote = true,
  63. category = "Jobs",
  64. customCheck = function(ply) return CLIENT or
  65. table.HasValue({"Donator", "Donator+", "superadmin", "admin"}, ply:GetNWString("usergroup"))
  66. end,
  67. CustomCheckFailMsg = "This job is Donator only!",
  68. })
  69. TEAM_SMALLARMSGUNDEALER = DarkRP.createJob("Small Arms Gun Dealer", {
  70. color = Color(250, 255, 0, 255),
  71. model = {"models/player/monk.mdl"},
  72. description = [[You are the supplier of Small Arms. You carry guns such as pistols and, smgs. You sell the lowest cost out of all the weapons meaning that means you should probably sell at a moderate price. You must must make a shop in order to sell guns.
  73. You cannot Raid.
  74. You cannot Mug.
  75. You can only kill in self-defense.]],
  76. weapons = {},
  77. command = "job small arms gundealer",
  78. max = 3,
  79. salary = 250,
  80. admin = 0,
  81. vote = false,
  82. hasLicense = true,
  83. candemote = true,
  84. category = "Jobs"
  85. })
  86. TEAM_MEDIUMARMSGUNDEALER = DarkRP.createJob("Medium Arms Gun Dealer", {
  87. color = Color(250, 255, 0, 255),
  88. model = {"models/player/monk.mdl"},
  89. description = [[You are the supplier of Medium Arms. You carry guns such as assault rifles, shotguns and, snipers. Your weapons cost a moderate amount. In order to sell weapons you must setup a shop.
  90. You cannot Raid.
  91. You cannot Mug.
  92. You can only kill in self-defense.]],
  93. weapons = {},
  94. command = "job medium arms gundealer",
  95. max = 3,
  96. salary = 250,
  97. admin = 0,
  98. vote = false,
  99. hasLicense = true,
  100. candemote = true,
  101. category = "Jobs"
  102. })
  103. TEAM_HOBO = DarkRP.createJob("Hobo", {
  104. color = Color(66, 255, 0, 255),
  105. model = {"models/player/corpse1.mdl"},
  106. description = [[You are the scum of the server, the shitstain, the cunts. Your goal is to annoy the populace of the server as much as possible. MAKE SURE you read the rules before playing this job because, any rule breaking while playing will result in a harsher punishment and, possible blacklisting of you from the job.]],
  107. weapons = {"weapon_angryhobo"},
  108. command = "job hobo",
  109. max = 0,
  110. salary = 0,
  111. admin = 0,
  112. vote = false,
  113. hasLicense = false,
  114. candemote = false,
  115. category = "Jobs"
  116. })
  117. TEAM_HOBOKING = DarkRP.createJob("Hobo King", {
  118. color = Color(66, 255, 0, 255),
  119. model = {"models/player/charple.mdl"},
  120. description = [[You are the King of Shitstains, the Duke of being a cunt, the President of Antifa.
  121. You lead the Hobo's in rebellion against the server, which includes you being able to declare war against the government.
  122. You can use weapons in your crimes but, it must be a heavy weapon which ensures that you can mow down crowds of people.]],
  123. weapons = {"weapon_angryhobo"},
  124. command = "job hoboking",
  125. max = 1,
  126. salary = 0,
  127. admin = 0,
  128. vote = false,
  129. hasLicense = false,
  130. candemote = false,
  131. category = "Jobs",
  132. NeedToChangeFrom = TEAM_HOBO,
  133. PlayerSpawn = function(ply)
  134. ply:SetMaxHealth(200)
  135. ply:SetHealth(200)
  136. ply:SetArmor(99)
  137. end,
  138. customCheck = function(ply) return CLIENT or
  139. table.HasValue({"Donator", "Donator+", "superadmin", "admin"}, ply:GetNWString("usergroup"))
  140. end,
  141. CustomCheckFailMsg = "This job is Donator only!",
  142. })
  143. TEAM_TERRORIST = DarkRP.createJob("Terrorist", {
  144. color = Color(255, 15, 0, 255),
  145. model = {"suicide_terrorist_391355669\lua\entities\suicide_terrorist"},
  146. description = [[Your role is to wreck havoc onto the server.
  147. You can raid.
  148. You cannot mug.
  149. You can use your suicide bomb in raids.
  150. You can commit attacks on random people but, you must advert terror attack!.]],
  151. weapons = {"weapon_suicide"},
  152. command = "job terrorist",
  153. max = 1,
  154. salary = 400,
  155. admin = 0,
  156. vote = false,
  157. hasLicense = true,
  158. candemote = true,
  159. category = "Jobs",
  160. PlayerSpawn = function(ply)
  161. ply:SetMaxHealth(100)
  162. ply:SetHealth(100)
  163. ply:SetArmor(0)
  164. end,
  165. customCheck = function(ply) return CLIENT or
  166. table.HasValue({"Donator", "Donator+", "superadmin", "admin"}, ply:GetNWString("usergroup"))
  167. end,
  168. CustomCheckFailMsg = "This job is Donator only!",
  169. })
  170.  
  171.  
  172. --[[---------------------------------------------------------------------------
  173. Define which team joining players spawn into and what team you change to if demoted
  174. ---------------------------------------------------------------------------]]
  175. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  176.  
  177.  
  178. --[[---------------------------------------------------------------------------
  179. Define which teams belong to civil protection
  180. Civil protection can set warrants, make people wanted and do some other police related things
  181. ---------------------------------------------------------------------------]]
  182. GAMEMODE.CivilProtection = {
  183. [TEAM_POLICE] = true,
  184. [TEAM_CHIEF] = true,
  185. [TEAM_MAYOR] = true,
  186. }
  187.  
  188. --[[---------------------------------------------------------------------------
  189. Jobs that are hitmen (enables the hitman menu)
  190. ---------------------------------------------------------------------------]]
  191. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement