Advertisement
Mathor31

Untitled

Feb 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. Dossier categories.lua
  2. DarkRP.createCategory{
  3. name = "Cadet",
  4. categorises = "jobs",
  5. startExpanded = true,
  6. color = Color(115,117,122,255),
  7. canSee = function(ply) return true end,
  8. sortOrder = 100,
  9. }
  10.  
  11. DarkRP.createCategory{
  12. name = "CloneTrooper"
  13. categorises = "jobs",
  14. startExpanded = true
  15. color = Color(115,117,122,255),
  16. canSee = function(ply) return true end,
  17. sortOrder = 100,
  18. }
  19. Dossier jobs.lua
  20. DarkRP custom jobs
  21. ---------------------------------------------------------------------------
  22. This file contains your custom jobs.
  23. This file should also contain jobs from DarkRP that you edited.
  24.  
  25. Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
  26. Once you've done that, copy and paste the job to this file and edit it.
  27.  
  28. The default jobs can be found here:
  29. https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
  30.  
  31. For examples and explanation please visit this wiki page:
  32. http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
  33.  
  34. Add your custom jobs under the following line:
  35. ---------------------------------------------------------------------------]]
  36. TEAM_CADET = DarkRP.createJob("Cadet", {
  37. color = Color(115, 117, 122, 255),
  38. model = {
  39. "models/cadet_debut/cadet_debut.mdl"
  40. },
  41. description = [[Vous êtes un clone en formation, un bleu. .]],
  42. weapons = {"weapon_fists","russe_pass","stalker_gas_mask_sunrise","keys","weapon_physcannon","gmod_tool"},
  43. command = "survivant",
  44. max = 32,
  45. salary = 0,
  46. vote = false,
  47. hasLicense = false,
  48. category = "Cadet",
  49. candemote = false,
  50. PlayerLoadout = function(ply) ply:SetArmor( 0 ) end,
  51. customCheck = function(ply) return CLIENT or
  52. table.HasValue({"VIP","user","LEADER","admin","superadmin","AdminTest"}, ply:GetNWString("usergroup"))
  53. end,
  54. })
  55.  
  56. ---------------------------------------------------------------------------]]
  57. TEAM_Clone = DarkRP.createJob("CloneTrooper", {
  58. color = Color(115, 117, 122, 255),
  59. model = {
  60. "models/player/worthy/phase_1/91st/bf2_p1_trooper.mdl",
  61. "models/reizer_cgi_p2/clone_snow/clone_snow.mdl"
  62. },
  63. description = [[Vous êtes un clone trooper sans spécialisation, vous servez la république.]],
  64. weapons = {"weapon_fists","russe_pass","stalker_gas_mask_sunrise","keys","weapon_physcannon","gmod_tool"},
  65. command = "CloneTrooper",
  66. max = 32,
  67. salary = 20,
  68. vote = false,
  69. hasLicense = false,
  70. modelScale = 1.2,
  71. category = "Survivant",
  72. candemote = false,
  73. PlayerLoadout = function(ply) ply:SetArmor( 0 ) end,
  74. PlayerLoadout = function(ply) ply:SetArmor( math.Clamp( ( ply:Armor() or 100 ) + 0, 0, 0 ) ) end,
  75. PlayerSpawn = function(ply)
  76. GAMEMODE:SetPlayerSpeed(ply, GAMEMODE.Config.walkspeed * 1.0, GAMEMODE.Config.runspeed * 1.0)
  77. ply:SetHealth(100)
  78. end,
  79. customCheck = function(ply) return CLIENT or
  80. table.HasValue({"VIP","admin","LEADER","user","superadmin","AdminTest"}, ply:GetNWString("usergroup"))
  81. end,
  82. CustomCheckFailMsg = "Metier FULL",
  83. PlayerDeath = function(ply, weapon, killer)
  84. ply:changeTeam(GAMEMODE.DefaultTeam, true)
  85. end
  86. })
  87.  
  88.  
  89.  
  90. --[[---------------------------------------------------------------------------
  91. Define which team joining players spawn into and what team you change to if demoted
  92. ---------------------------------------------------------------------------]]
  93. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  94. --[[---------------------------------------------------------------------------
  95. Define which teams belong to civil protection
  96. Civil protection can set warrants, make people wanted and do some other police related things
  97. ---------------------------------------------------------------------------]]
  98. GAMEMODE.CivilProtection = {
  99. [TEAM_POLICE] = true,
  100. [TEAM_CHIEF] = true,
  101. [TEAM_MAYOR] = true,
  102. }
  103. --[[---------------------------------------------------------------------------
  104. Jobs that are hitmen (enables the hitman menu)
  105. ---------------------------------------------------------------------------]]
  106. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement