Guest User

job.lua

a guest
May 7th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.97 KB | None | 0 0
  1. DarkRP.createCategory{
  2. name = "Prisoner",
  3. categorises = "jobs",
  4. startExpanded = true,
  5. color = Color(5, 255, 0, 255),
  6. canSee = function(ply) return table.HasValue({TEAM_PRISONER}, ply:Team()) end,
  7. sortOrder = 1
  8.  
  9. DarkRP.createCategory{
  10. name = "Guards",
  11. categorises = "jobs",
  12. startExpanded = true,
  13. color = Color(0, 117, 255, 255),
  14. canSee = function(ply) return table.HasValue({TEAM_WARDEN, TEAM_PRISONGUARD, TEAM_VIPSNIPER, TEAM_VIPHEAVY, TEAM_WARDENGUARD}, ply:Team()) end,
  15. sortOrder = 2
  16. }
  17.  
  18. DarkRP.createCategory{
  19. name = "Outsider",
  20. categorises = "jobs",
  21. startExpanded = true,
  22. color = Color(0, 0, 0, 255),
  23. canSee = function(ply) return table.HasValue({TEAM_BMD}, ply:Team()) end,
  24. sortOrder = 3
  25. }
  26.  
  27. DarkRP.createCategory{
  28. name = "Staff",
  29. categorises = "jobs",
  30. startExpanded = true,
  31. color = Color(255, 245, 0, 255),
  32. canSee = function(ply) return table.HasValue({"T-Mod", "Mod", "admin", "S-Admin", "superadmin"}, ply:GetNWString("usergroup")) end,
  33. sortOrder = 4
  34. }
  35.  
  36.  
  37.  
  38.  
  39.  
  40. TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
  41. color = Color(0, 0, 0, 255),
  42. model = {"models/player/leet.mdl"},
  43. description = [[Deal Weapons To The Prisoner's And Stay Away From The Guards.]],
  44. weapons = {"m9k_hk45"},
  45. command = "blackmarket",
  46. max = 2,
  47. salary = 50,
  48. admin = 0,
  49. vote = true,
  50. hasLicense = false,
  51. candemote = true,
  52. category = "Outsider"
  53. })
  54.  
  55. TEAM_SOD = DarkRP.createJob("Staff On Duty", {
  56. color = Color(0, 0, 0, 255),
  57. model = {"models/player/combine_super_soldier.mdl"},
  58. description = [[Your on Black and Hugo's staff team, You are expected highly of when using SOD, Dont role-play as this job, Answer SIT's and deal with rule breakers, Enough said!]],
  59. weapons = {},
  60. command = "sod",
  61. max = 0,
  62. salary = 0,
  63. admin = 1,
  64. vote = false,
  65. hasLicense = true,
  66. candemote = false,
  67. category = "Staff",
  68. customCheck = function(ply) return CLIENT or
  69. table.HasValue({"T-Mod", "Mod", "admin", "S-Admin", "superadmin"}, ply:GetNWString("usergroup"))
  70. end,
  71. CustomCheckFailMsg = "This Job Is Staff Only!",
  72.  
  73. })
  74.  
  75.  
  76.  
  77.  
  78. TEAM_WARDEN = DarkRP.createJob("Warden", {
  79. color = Color(255, 0, 0, 255),
  80. model = {"models/player/breen.mdl"},
  81. description = [[You are Responsible For the Prison, Take control With an Iron Fist or A Soft Touch.
  82. Decide if the prison gets more free time or jail time it's up to you.
  83. ]],
  84. weapons = {"m9k_hk45", "{arrest_stick", "unarrest_stick", "stunstick", "handcuffs"},
  85. command = "Warden",
  86. max = 1,
  87. salary = 50,
  88. admin = 0,
  89. vote = true,
  90. hasLicense = true,
  91. candemote = true,
  92. category = "Guards",
  93. mayor = true,
  94. ammo = {
  95. ["pistol"] = 100
  96. },
  97. PlayerSpawn = function(ply)
  98. ply:SetMaxHealth(100)
  99. ply:SetHealth(100)
  100. ply:SetArmor(0)
  101. end,
  102. PlayerDeath = function(ply, weapon, killer)
  103. ply:teamBan()
  104. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  105. DarkRP.notifyAll(0, 4, "The Warden Has Died")
  106. end
  107. })
  108.  
  109.  
  110.  
  111.  
  112. TEAM_PRISONGUARD = DarkRP.createJob("PrisonGuard", {
  113. color = Color(17, 0, 34, 255),
  114. model = {"models/player/police.mdl"},
  115. description = [[You deal with the prisoners 24/7
  116. Make sure they Don't Escape!
  117. ]],
  118. weapons = {"m9k_m92beretta", "m9k_mp5", "arrest_stick", "unarrest_stick", "stunstick", "handcuffs"},
  119. command = "PrisonGuard",
  120. max = 0,
  121. salary = 30,
  122. admin = 0,
  123. vote = true,
  124. hasLicense = true,
  125. candemote = true,
  126. category = "Guards",
  127. PlayerSpawn = function(ply)
  128. ply:SetMaxHealth(100)
  129. ply:SetHealth(100)
  130. ply:SetArmor(20)
  131. end
  132. })
  133.  
  134.  
  135.  
  136. TEAM_PRISONER = DarkRP.createJob("Prisoner", {
  137. color = Color(0, 0, 0, 255),
  138. model = {"models/player/Group01/male_09.mdl"},
  139. description = [[You Are The Prisoner Try to Escape And Create A new life for yourself]],
  140. weapons = {},
  141. command = "Prisoner",
  142. max = 0,
  143. salary = 0,
  144. admin = 0,
  145. vote = false,
  146. hasLicense = false,
  147. candemote = false,
  148. category = "Prisoner"
  149. })
  150.  
  151.  
  152. TEAM_VIPSNIPER = DarkRP.createJob("VIP Sniper",
  153. color = Color(0, 41, 255, 255),
  154. model = {"models/player/riot.mdl"},
  155. description = [[This is a VIP Job
  156. Watch the outside of the prison and stop Prisoners Trying to escape]],
  157. weapons = {"m9k_aw50", "arrest_stick", "unarrest_stick", "stunstick", "handcuffs", "m9k_m16a4_acog"},
  158. command = "Sniper",
  159. max = 4,
  160. salary = 100,
  161. admin = 0,
  162. vote = false,
  163. hasLicense = true,
  164. candemote = false,
  165. category = "Guards",
  166. customCheck = function(ply) return
  167. table.HasValue({"STEAM_1:0:130154758", "STEAM_0:1:61367775"}, ply:SteamID())
  168. end,
  169. CustomCheckFailMsg = "This Job is For Donaters Only",
  170.  
  171. })
  172.  
  173. TEAM_VIPHEAVY = DarkRP.createJob("VIP Heavy", {
  174. color = Color(0, 26, 255, 255),
  175. model = {"models/player/swat.mdl"},
  176. description = [[You are the person they call in if there is a riot
  177. ]],
  178. weapons = {"arrest_stick", "unarrest_stick", "stunstick", "handcuffs", "m9k_ares_shrike"},
  179. command = "Heavy",
  180. max = 2,
  181. salary = 100,
  182. admin = 0,
  183. vote = false,
  184. hasLicense = true,
  185. candemote = false,
  186. category = "Guards",
  187. PlayerSpawn = function(ply)
  188. ply:SetMaxHealth(200)
  189. ply:SetHealth(200)
  190. ply:SetArmor(100)
  191. end,
  192. customCheck = function(ply) return
  193. table.HasValue({" Diamond vip"}, ply:GetNWString("usergroup"))
  194. end,
  195. CustomCheckFailMsg = "This job is donator only",
  196.  
  197.  
  198.  
  199.  
  200. TEAM_WARDENGUARD = DarkRP.createJob("Warden's Guard", {
  201. color = Color(48, 36, 176, 255),
  202. model = {"models/player/gasmask.mdl"},
  203. description = [[Protect The Mayor With Your Life, Always Stay By His Side.
  204. Roaming without the mayor will lead to an instant demotion!]],
  205. weapons = {"m9k_usas"},
  206. command = "wardenguard",
  207. max = 2,
  208. salary = 100,
  209. admin = 0,
  210. vote = true,
  211. hasLicense = false,
  212. candemote = true,
  213. category = "Guards"
  214. })
  215.  
  216.  
  217.  
  218.  
  219. TEAM_HIERARCHY = DarkRP.createJob("Hierarchy - OOC", {
  220. color = Color(0, 0, 0, 255),\
  221. model = {
  222. "models/player/Group01/male_07.mdl",
  223. "models/player/Group01/female_01.mdl"
  224. },
  225. description = [[You are Hierarchy, The Highest of them all!]],
  226. weapons = {},
  227. command = "Hierarchy",
  228. max = 0,
  229. salary = 0,
  230. admin = 2,
  231. vote = false,
  232. hasLicense = true,
  233. candemote = false,
  234. category = "Staff",
  235. customCheck = function(ply) return CLIENT or
  236. table.HasValue({"superadmin"}, ply:GetNWString("usergroup"))
  237. end,
  238. CustomCheckFailMsg = "This Job Is Superadmin Only!",
  239. })
  240.  
  241.  
  242. GAMEMODE.DefaultTeam = {Team_Prisoner}
  243.  
  244.  
  245.  
  246. GAMEMODE.CivilProtection = {
  247. [TEAM_WARDEN] = true
  248. [Team_PRISONGUARD] = True
  249. [TEAM_VIPHEAVY] = true
  250. [TEAM_VIPSNIPER] = true
  251. [TEAM_WARDENGUARD] = true
  252.  
  253. }
Advertisement
Add Comment
Please, Sign In to add comment