Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 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.  
  20.  
  21. --[[---------------------------------------------------------------------------
  22. Define which team joining players spawn into and what team you change to if demoted
  23. ---------------------------------------------------------------------------]]
  24. GAMEMODE.DefaultTeam = TEAM_CITOYEN
  25. --[[---------------------------------------------------------------------------
  26. Define which teams belong to civil protection
  27. Civil protection can set warrants, make people wanted and do some other police related things
  28. ---------------------------------------------------------------------------]]
  29. GAMEMODE.CivilProtection = {
  30. [TEAM_MUNICIPAL] = true,
  31. [TEAM_CHIEF] = true,
  32. [TEAM_MAYOR] = true,
  33. }
  34. --[[---------------------------------------------------------------------------
  35. Jobs that are hitmen (enables the hitman menu)
  36. ---------------------------------------------------------------------------]]
  37. DarkRP.addHitmanTeam(TEAM_MOB)
  38.  
  39. TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
  40. color = Color(5, 255, 0, 255),
  41. model = {
  42. "models/bloocobalt/citizens/female_01.mdl",
  43. "models/bloocobalt/citizens/female_01_b.mdl",
  44. "models/bloocobalt/citizens/female_02.mdl",
  45. "models/bloocobalt/citizens/male_04.mdl",
  46. "models/bloocobalt/citizens/male_03.mdl",
  47. "models/bloocobalt/citizens/male_08.mdl"
  48. },
  49. description = [[Vous ete un simple citoyen de cette ville.]],
  50. weapons = {"sphone", "weapon_drivelicense", "idcard", "weapon_adv_keys"},
  51. command = "Citoyen",
  52. max = 0,
  53. salary = 10,
  54. admin = 0,
  55. vote = false,
  56. hasLicense = false,
  57. candemote = false,
  58. category = "Citoyen",
  59. PlayerSpawn = function(ply)
  60. ply:SetMaxHealth(100)
  61. ply:SetHealth(100)
  62. ply:SetArmor(100)
  63. end
  64. })
  65.  
  66. TEAM_MUNICIPAL = DarkRP.createJob("Policier", {
  67. color = Color(0, 35, 255, 255),
  68. model = {
  69. "models/player/police_agent/male_01_agent.mdl",
  70. "models/player/police_agent/male_03_agent.mdl",
  71. "models/player/police_agent/male_02_agent.mdl",
  72. "models/player/police_agent/male_04_agent.mdl",
  73. "models/player/police_agent/male_05_agent.mdl",
  74. "models/player/police_agent/male_07_agent.mdl",
  75. "models/player/police_agent/male_08_agent.mdl",
  76. "models/player/police_agent/male_09_agent.mdl"
  77. },
  78. description = [[Vous ete un policer de cette ville faite respecter les lois.]],
  79. weapons = {"realrbn_tazer", "vc_spikestrip_wep", "sphone", "weapon_drivelicense", "idcard", "weapon_adv_keys", "dradio", "speed_gun", "fas2_p226", "salute", "weapon_r_handcuffs"},
  80. command = "Police",
  81. max = 4,
  82. salary = 100,
  83. admin = 0,
  84. vote = true,
  85. hasLicense = true,
  86. candemote = false,
  87. category = "Gouvernement",
  88. PlayerSpawn = function(ply)
  89. ply:SetMaxHealth(100)
  90. ply:SetHealth(100)
  91. ply:SetArmor(100)
  92. end,
  93. PlayerDeath = function(ply, weapon, killer)
  94. ply:teamBan()
  95. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  96. DarkRP.notifyAll(0, 4, "")
  97. end
  98. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement