Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. --[[---------------------------------------------------------------------------
  2. DarkRP custom jobs
  3. ---------------------------------------------------------------------------
  4. This file contains your custom jobs.
  5. This file should also contain jobs from DarkRP that you edited.
  6.  
  7. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  8. Once you've done that, copy and paste the job to this file and edit it.
  9.  
  10. The default jobs can be found here:
  11. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  12.  
  13. For examples and explanation please visit this wiki page:
  14. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  15.  
  16. Add your custom jobs under the following line:
  17. ---------------------------------------------------------------------------]]
  18. --[[
  19. Generated using: DarkRP | Category Generator
  20. https://csite.io/tools/gmod-darkrp-category
  21. --]]
  22. DarkRP.createCategory{
  23. name = "Citizens",
  24. categorises = "jobs",
  25. startExpanded = true,
  26. color = Color(255, 255, 255, 255),
  27. canSee = function(ply) return true end,
  28. sortOrder = 1
  29. }
  30.  
  31. TEAM_Citizen = DarkRP.createJob("Citizen", {
  32. color = Color(255, 255, 255, 255),
  33. model = {"models/player/hostage/hostage_04.mdl"},
  34. description = [[Citizen]],
  35. weapons = {},
  36. command = "civ",
  37. max = 0,
  38. salary = 25,
  39. admin = 0,
  40. vote = false,
  41. hasLicense = true,
  42. candemote = false,
  43. category = "Citizens"
  44. })
  45.  
  46. TEAM_Thief = DarkRP.createJob("Thief", {
  47. color = Color(255, 255, 255, 255),
  48. model = {"models/player/arctic.mdl"},
  49. description = [[Thief]],
  50. weapons = "lockpick", "weapon_fists"
  51. command = "thief",
  52. max = 30,
  53. salary = 50,
  54. admin = 0,
  55. vote = false,
  56. hasLicense = false,
  57. candemote = false,
  58. category = "Citizens"
  59. })
  60.  
  61.  
  62. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  63. color = Color(255, 255, 255, 255),
  64. model = {"models/player/guerilla.mdl"},
  65. description = [[Gun Dealer]],
  66. weapons = "weapon_glock2",
  67. command = "gundealer",
  68. max = 2,
  69. salary = 100,
  70. admin = 0,
  71. vote = false,
  72. hasLicense = true,
  73. candemote = false,
  74. category = "Citizens"
  75. })
  76.  
  77.  
  78. --[[---------------------------------------------------------------------------
  79. Define which team joining players spawn into and what team you change to if demoted
  80. ---------------------------------------------------------------------------]]
  81. GAMEMODE.DefaultTeam = TEAM_Citizen
  82. --[[---------------------------------------------------------------------------
  83. Define which teams belong to civil protection
  84. Civil protection can set warrants, make people wanted and do some other police related things
  85. ---------------------------------------------------------------------------]]
  86. GAMEMODE.CivilProtection = {
  87. [TEAM_POLICE] = true,
  88. [TEAM_CHIEF] = true,
  89. [TEAM_MAYOR] = true,
  90. }
  91. --[[---------------------------------------------------------------------------
  92. Jobs that are hitmen (enables the hitman menu)
  93. ---------------------------------------------------------------------------]]
  94. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement