Advertisement
Guest User

'<eof>' expected near 'end'

a guest
Aug 9th, 2015
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.29 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_CITIZEN = DarkRP.createJob("Citizen", {
  22.     color = Color(20, 150, 20, 255),
  23.     model = {
  24.         "models/player/Group01/Female_01.mdl",
  25.         "models/player/Group01/Female_02.mdl",
  26.         "models/player/Group01/Female_03.mdl",
  27.         "models/player/Group01/Female_04.mdl",
  28.         "models/player/Group01/Female_06.mdl",
  29.         "models/player/group01/male_01.mdl",
  30.         "models/player/Group01/Male_02.mdl",
  31.         "models/player/Group01/male_03.mdl",
  32.         "models/player/Group01/Male_04.mdl",
  33.         "models/player/Group01/Male_05.mdl",
  34.         "models/player/Group01/Male_06.mdl",
  35.         "models/player/Group01/Male_07.mdl",
  36.         "models/player/Group01/Male_08.mdl",
  37.         "models/player/Group01/Male_09.mdl"
  38.     },
  39.     description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
  40.     weapons = {},
  41.     command = "citizen",
  42.     max = 0,
  43.     salary = GAMEMODE.Config.normalsalary,
  44.     admin = 0,
  45.     vote = false,
  46.     hasLicense = false,
  47.     candemote = false,
  48.     category = "Citizens",
  49. })
  50.  
  51. TEAM_POLICE = DarkRP.createJob("Police Officer", {
  52.     color = Color(25, 25, 170, 255),
  53.     model = {"models/player/uk_police/uk_police_01.mdl", "models/player/uk_police/uk_police_02.mdl", "models/player/uk_police/uk_police_03.mdl", "models/player/uk_police/uk_police_04.mdl", "models/player/uk_police/uk_police_05.mdl", "models/player/uk_police/uk_police_06.mdl", "models/player/uk_police/uk_police_07.mdl", "models/player/uk_police/uk_police_08.mdl", "models/player/uk_police/uk_police_09.mdl"},
  54.     description = [[Protect the mayor and his town from the dangers..]],
  55.     weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
  56.     command = "cp",
  57.     max = 6,
  58.     salary = GAMEMODE.Config.normalsalary * 1.45,
  59.     admin = 0,
  60.     vote = true,
  61.     hasLicense = true,
  62.     ammo = {
  63.         ["pistol"] = 60,
  64.     },
  65.     category = "The Good",
  66. })
  67.  
  68. TEAM_GANG = DarkRP.createJob("Rebel", {
  69.     color = Color(75, 75, 75, 255),
  70.     model = {
  71.         "models/player/Group03/Female_01.mdl",
  72.         "models/player/Group03/Female_02.mdl",
  73.         "models/player/Group03/Female_03.mdl",
  74.         "models/player/Group03/Female_04.mdl",
  75.         "models/player/Group03/Female_06.mdl",
  76.         "models/player/group03/male_01.mdl",
  77.         "models/player/Group03/Male_02.mdl",
  78.         "models/player/Group03/male_03.mdl",
  79.         "models/player/Group03/Male_04.mdl",
  80.         "models/player/Group03/Male_05.mdl",
  81.         "models/player/Group03/Male_06.mdl",
  82.         "models/player/Group03/Male_07.mdl",
  83.         "models/player/Group03/Male_08.mdl",
  84.         "models/player/Group03/Male_09.mdl"},
  85.     description = [[Your a bad boy but you don't quite meet the ability to viciously murder.]],
  86.     weapons = {},
  87.     command = "gangster",
  88.     max = 3,
  89.     salary = GAMEMODE.Config.normalsalary,
  90.     admin = 0,
  91.     vote = false,
  92.     hasLicense = false,
  93.     category = "The Bad",
  94. })
  95.  
  96. TEAM_MOB = DarkRP.createJob("Rebel Don", {
  97.     color = Color(25, 25, 25, 255),
  98.     model = "models/player/gman_high.mdl",
  99.     description = [[Your the don of the rebels, tell them what to do and look after them.]],
  100.     weapons = {"lockpick", "unarrest_stick"},
  101.     command = "mobboss",
  102.     max = 1,
  103.     salary = GAMEMODE.Config.normalsalary * 1.34,
  104.     admin = 0,
  105.     vote = false,
  106.     hasLicense = false,
  107.     category = "The Bad",
  108. })
  109.  
  110. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  111.     color = Color(255, 140, 0, 255),
  112.     model = "models/player/monk.mdl",
  113.     description = [[Your have a permit to sell guns but watch out, your buyers may not!]],
  114.     weapons = {},
  115.     command = "gundealer",
  116.     max = 2,
  117.     salary = GAMEMODE.Config.normalsalary,
  118.     admin = 0,
  119.     vote = false,
  120.     hasLicense = true,
  121.     category = "Citizens",
  122. })
  123.  
  124. TEAM_MEDIC = DarkRP.createJob("Medic", {
  125.     color = Color(47, 79, 79, 255),
  126.     model = "models/player/kleiner.mdl",
  127.     description = [[With your medical knowledge, have people pay for you to heal them.]],
  128.     weapons = {"med_kit"},
  129.     command = "medic",
  130.     max = 3,
  131.     salary = GAMEMODE.Config.normalsalary,
  132.     admin = 0,
  133.     vote = false,
  134.     hasLicense = false,
  135.     medic = true,
  136.     category = "Citizens",
  137. })
  138.  
  139. TEAM_CHIEF = DarkRP.createJob("Chief Police Officer", {
  140.     color = Color(20, 20, 255, 255),
  141.     model = "models/player/combine_soldier_prisonguard.mdl",
  142.     description = [[The chief of the police, thats a hard job to keep.]],
  143.     weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
  144.     command = "chief",
  145.     max = 1,
  146.     salary = GAMEMODE.Config.normalsalary * 1.67,
  147.     admin = 0,
  148.     vote = true,
  149.     hasLicense = true,
  150.     chief = true,
  151.     ammo = {
  152.         ["pistol"] = 60,
  153.     },
  154.     category = "The Good",
  155. })
  156.  
  157. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  158.     color = Color(150, 20, 20, 255),
  159.     model = "models/player/breen.mdl",
  160.     description = [[Be protected by police, be loved. But be ready to have the worst happen.]],
  161.     weapons = {},
  162.     command = "mayor",
  163.     max = 1,
  164.     salary = GAMEMODE.Config.normalsalary * 1.89,
  165.     admin = 0,
  166.     vote = true,
  167.     hasLicense = false,
  168.     mayor = true,
  169.     category = "The Good",
  170. })
  171.  
  172. TEAM_HOBO = DarkRP.createJob("Homeless", {
  173.     color = Color(80, 45, 0, 255),
  174.     model = "models/player/corpse1.mdl",
  175.     description = [[Have a home on the streets and beg for money. D:]],
  176.     weapons = {"weapon_bugbait"},
  177.     command = "hobo",
  178.     max = 5,
  179.     salary = 0,
  180.     admin = 0,
  181.     vote = false,
  182.     hasLicense = false,
  183.     candemote = false,
  184.     hobo = true,
  185.     category = "The Ugly",
  186. })
  187.  
  188. end
  189.  
  190. -- Compatibility for when default teams are disabled
  191. TEAM_CITIZEN = TEAM_CITIZEN  or -1
  192. TEAM_POLICE  = TEAM_POLICE   or -1
  193. TEAM_GANG    = TEAM_GANG     or -1
  194. TEAM_MOB     = TEAM_MOB      or -1
  195. TEAM_GUN     = TEAM_GUN      or -1
  196. TEAM_MEDIC   = TEAM_MEDIC    or -1
  197. TEAM_CHIEF   = TEAM_CHIEF    or -1
  198. TEAM_MAYOR   = TEAM_MAYOR    or -1
  199. TEAM_HOBO    = TEAM_HOBO     or -1
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207. --[[---------------------------------------------------------------------------
  208. Define which team joining players spawn into and what team you change to if demoted
  209. ---------------------------------------------------------------------------]]
  210. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  211.  
  212.  
  213. --[[---------------------------------------------------------------------------
  214. Define which teams belong to civil protection
  215. Civil protection can set warrants, make people wanted and do some other police related things
  216. ---------------------------------------------------------------------------]]
  217. GAMEMODE.CivilProtection = {
  218.     [TEAM_POLICE] = true,
  219.     [TEAM_CHIEF] = true,
  220.     [TEAM_MAYOR] = true,
  221. }
  222.  
  223. --[[---------------------------------------------------------------------------
  224. Jobs that are hitmen (enables the hitman menu)
  225. ---------------------------------------------------------------------------]]
  226. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement