Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.17 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. TEAM_CITIZEN = DarkRP.createJob("Citizen", {
  21.     color = Color(20, 150, 20, 255),
  22.     model = {
  23.         "models/player/Group01/Female_01.mdl",
  24.         "models/player/Group01/Female_02.mdl",
  25.         "models/player/Group01/Female_03.mdl",
  26.         "models/player/Group01/Female_04.mdl",
  27.         "models/player/Group01/Female_06.mdl",
  28.         "models/player/group01/male_01.mdl",
  29.         "models/player/Group01/Male_02.mdl",
  30.         "models/player/Group01/male_03.mdl",
  31.         "models/player/Group01/Male_04.mdl",
  32.         "models/player/Group01/Male_05.mdl",
  33.         "models/player/Group01/Male_06.mdl",
  34.         "models/player/Group01/Male_07.mdl",
  35.         "models/player/Group01/Male_08.mdl",
  36.         "models/player/Group01/Male_09.mdl"
  37.     },
  38.     description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in planet life.]],
  39.     weapons = {},
  40.     command = "citizen",
  41.     max = 0,
  42.     salary = GAMEMODE.Config.normalsalary,
  43.     admin = 0,
  44.     vote = false,
  45.     hasLicense = false,
  46.     candemote = false,
  47.     category = "Citizens",
  48. })
  49. TEAM_HITMAN = DarkRP.createJob("HK-47 Assassin Droid", {
  50.     color = Color(0, 0, 0, 255),
  51.     model = "models/hk-47.mdl",
  52.     description = [[People hire you to take out other people,
  53.     this job require you to be completely focussed.
  54.     A single breath can make you loose a shot.]],
  55.     weapons = {"weapon_752_dc17m_sn"},
  56.     command = "assassindroid",
  57.     max = 1,
  58.     salary = 65,
  59.     admin = 0,
  60.     vote = false,
  61.     hasLicense = false,
  62.     category = "Citizens",
  63. })
  64. TEAM_HOBO = DarkRP.createJob("Hobo", {
  65.     color = Color(57, 68, 32, 255),
  66.     model = { "models/player/corpse1.mdl"    
  67.     },
  68.     description = [[You don't have a home. You are the lowest class of society.]],
  69.    weapons = {},
  70.    command = "hobo",
  71.    max = 8,
  72.    salary = 0,
  73.    admin = 0,
  74.    vote = false,
  75.    hasLicense = false,
  76.    candemote = false,
  77.    category = "Citizens",
  78. })
  79. TEAM_GUNDEALER = DarkRP.createJob("Armament Dealer", {
  80.    color = Color(245, 184, 0, 255),
  81.    model = { "models/player/b4p/b4p_rodian.mdl"    
  82.    },
  83.    description = [[You sell guns.]],
  84.    weapons = {},
  85.    command = "armamentdealer",
  86.    max = 5,
  87.    salary = 100,
  88.    admin = 0,
  89.    vote = false,
  90.    hasLicense = false,
  91.    candemote = false,
  92.    category = "Citizens",
  93. })
  94. TEAM_STORMTROOPER = DarkRP.createJob("StormTrooper", {
  95.    color = Color(25, 25, 170, 255),
  96.    model = {"models/kriegsyntax/starwars/stormtrooper_playermodel.mdl"},
  97.    description = [[You were sent to keep the peace in the planet during the occupation. Make sure every citizen follows the law or punish them.
  98.        You have the power to arrest criminals and protect innocents.
  99.        Hit a player with your arrest baton to put them in jail.
  100.        Bash a player with a stunstick and they may learn to obey the law.
  101.        The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  102.        The Battering Ram can also unfreeze frozen props (if enabled).
  103.        Type /wanted <name> to alert the public to the presence of a criminal.]],
  104.    weapons = {"arrest_stick", "unarrest_stick", "weapon_752_se14c", "stunstick", "door_ram", "weaponchecker"},
  105.    command = "st",
  106.    max = 5,
  107.    salary = GAMEMODE.Config.normalsalary * 1.45,
  108.    admin = 0,
  109.    vote = true,
  110.    hasLicense = true,
  111.    category = "Imperial Army",
  112.    ammo = {
  113.        ["pistol"] = 60,
  114.    }
  115. })
  116. --[[---------------------------------------------------------------------------
  117. Define which team joining players spawn into and what team you change to if demoted
  118. ---------------------------------------------------------------------------]]
  119. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  120.  
  121.  
  122. --[[---------------------------------------------------------------------------
  123. Define which teams belong to civil protection
  124. Civil protection can set warrants, make people wanted and do some other police related things
  125. ---------------------------------------------------------------------------]]
  126. GAMEMODE.CivilProtection = {
  127.     [TEAM_STORMTROOPER] = true,
  128.     [TEAM_CHIEF] = true,
  129.     [TEAM_MAYOR] = true,
  130. }
  131.  
  132. --[[---------------------------------------------------------------------------
  133. Jobs that are hitmen (enables the hitman menu)
  134. ---------------------------------------------------------------------------]]
  135. DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement