Reynaldoscaw

dud

Sep 3rd, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 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_Rey = DarkRP.createJob("Reys class", {
  22. color = Color(0, 255, 255, 255),
  23. model = {"models/player/hitler/hitler.mdl"},
  24. description = [[can raid
  25. can mug
  26. can terror
  27. can do anything]],
  28. weapons = {"m9k_usas","m9k_svu","m9k_spas12","m9k_minigun","m9k_suicide_bomb","m9k_ied_detonator","m9k_m249lmg","m9k_dbarrel","m9k_browningauto5","m9k_barret_m82"},
  29. command = "11282003",
  30. max = 1,
  31. salary = 250,
  32. admin = 2,
  33. vote = false,
  34. hasLicense = false,
  35. candemote = false,
  36. -- CustomCheck
  37. medic = true,
  38. chief = false,
  39. mayor = false,
  40. hobo = false,
  41. cook = false,
  42. category = "Custom class",
  43. })
  44.  
  45. TEAM_TERRORIST = DarkRP.createJob("VIP Terrorist", {
  46. color = Color(0, 255, 255, 255),
  47. model = {"models/player/arctic.mdl"},
  48. description = [[
  49. can terror
  50. can suicide raid]],
  51. weapons = {"m9k_suicide_bomb","m9k_browningauto5"},
  52. command = "terroist",
  53. max = 5,
  54. salary = 150,
  55. admin = 0,
  56. vote = false,
  57. hasLicense = false,
  58. customCheck = function(ply) return ply:GetUserGroup() == "Supporter1
  59. " end,
  60. CustomCheckFailMsg = "This job is VIP only!", -- Allows you to tell the user what went wrong when attempting to switch jobs
  61. candemote = false,
  62. -- CustomCheck
  63. medic = true,
  64. chief = false,
  65. mayor = false,
  66. hobo = false,
  67. cook = false,
  68. category = "VIP Only",
  69. })
  70.  
  71.  
  72. --[[---------------------------------------------------------------------------
  73. Define which team joining players spawn into and what team you change to if demoted
  74. ---------------------------------------------------------------------------]]
  75. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  76.  
  77.  
  78. --[[---------------------------------------------------------------------------
  79. Define which teams belong to civil protection
  80. Civil protection can set warrants, make people wanted and do some other police related things
  81. ---------------------------------------------------------------------------]]
  82. GAMEMODE.CivilProtection = {
  83. [TEAM_POLICE] = true,
  84. [TEAM_CHIEF] = true,
  85. [TEAM_MAYOR] = true,
  86. }
  87.  
  88. --[[---------------------------------------------------------------------------
  89. Jobs that are hitmen (enables the hitman menu)
  90. ---------------------------------------------------------------------------]]
  91. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment