Advertisement
Guest User

jobs.lua [DarkRP]

a guest
Feb 8th, 2019
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.01 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. TEAM_CITIZEN = DarkRP.createJob("Hotel Owner", {
  20.     color = Color(20, 150, 20, 255),
  21.     model = {"models/player/hostage/hostage_03.mdl"},
  22.     description = [[The Hotel Owner owns and operates the hotel. They can only base in the hotel and must protect their customers.]],
  23.     weapons = {"weapon_fists"},
  24.     command = "howner",
  25.     max = 0,
  26.     salary = 150,
  27.     admin = 0,
  28.     vote = false,
  29.     hasLicense = false,
  30.     category = "Citizens",
  31. })
  32.  
  33. TEAM_ADMIN = DarkRP.createJob("Staff on duty", {
  34.     color = Color(25, 25, 25, 255),
  35.     model = "models/player/obese_male.mdl",
  36.     description = [[Default moderator class.]],
  37.     weapons = {"lockpick", "unarrest_stick","weapon_fists"},
  38.     command = "mobboss",
  39.     max = 0,
  40.     salary = 1000,
  41.     admin = 1,
  42.     vote = false,
  43.     hasLicense = false,
  44.     category = {"Staff"}
  45. })
  46.  
  47. TEAM_POLICE = DarkRP.createJob("Police", {
  48.     color = Color(25, 25, 170, 255),
  49.     model = {"models/player/combine_soldier.mdl"},
  50.     description = [[The protector of every theif that lives in the city.
  51.         You have the power to arrest criminals and protect innocents.
  52.         Hit a player with your arrest baton to put them in jail.
  53.         Bash a player with a stunstick and they may learn to obey the law.
  54.         The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  55.         The Battering Ram can also unfreeze frozen props (if enabled).
  56.         Type /wanted <name> to alert the public to the presence of a criminal.]],
  57.     weapons = {"arrest_stick", "unarrest_stick", "m9k_sig_p229r", "stunstick", "door_ram"},
  58.     command = "cp",
  59.     max = 4,
  60.     salary = GAMEMODE.Config.normalsalary * 1.45,
  61.     admin = 0,
  62.     vote = true,
  63.     hasLicense = true,
  64.     category = "Police",
  65. })
  66.  
  67.  
  68. TEAM_GANG = DarkRP.createJob("Gangster", {
  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 = [[The lowest person of crime.
  86.         A gangster generally works for the Mobboss who runs the crime family.
  87.         The Mob boss sets your agenda and you follow it or you might be punished.]],
  88.     weapons = {"m9k_hk45"},
  89.     command = "gangster",
  90.     max = 3,
  91.     salary = GAMEMODE.Config.normalsalary,
  92.     admin = 0,
  93.     vote = false,
  94.     hasLicense = false,
  95.     category = "Gangsters",
  96. })
  97.  
  98. TEAM_MOB = DarkRP.createJob("Mob boss", {
  99.     color = Color(25, 25, 25, 255),
  100.     model = "models/player/gman_high.mdl",
  101.     description = [[The Mob boss is the boss of the criminals in the city.
  102.         With his power he coordinates the gangsters and forms an efficient crime organization.
  103.         He has the ability to break into houses by using a lockpick.
  104.         The Mob boss posesses the ability to unarrest you.]],
  105.     weapons = {"lockpick", "unarrest_stick","m9k_contender"},
  106.     command = "mobboss",
  107.     max = 1,
  108.     salary = GAMEMODE.Config.normalsalary * 1.34,
  109.     admin = 0,
  110.     vote = false,
  111.     hasLicense = false,
  112.     category = "Gangsters",
  113. })
  114.  
  115. TEAM_GUN = DarkRP.createJob("Gun Dealer", {
  116.     color = Color(255, 140, 0, 255),
  117.     model = "models/player/barney.mdl",
  118.     description = [[A Gun Dealer is the only person who can sell guns to other people.
  119.         Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
  120.    weapons = {},
  121.    command = "gundealer",
  122.    max = 2,
  123.    salary = GAMEMODE.Config.normalsalary,
  124.    admin = 0,
  125.    vote = false,
  126.    hasLicense = false,
  127.    category = "Citizens",
  128. })
  129.  
  130. TEAM_MEDIC = DarkRP.createJob("Medic", {
  131.    color = Color(47, 79, 79, 255),
  132.    model = {
  133.    "models/player/Group03m/female_01.mdl",
  134.    "models/player/Group03m/female_02.mdl",
  135.    "models/player/Group03m/female_03.mdl",
  136.    "models/player/Group03m/female_04.mdl",
  137.    "models/player/Group03m/female_05.mdl",
  138.    "models/player/Group03m/male_01.mdl",
  139.    "models/player/Group03m/male_02.mdl",
  140.    "models/player/Group03m/male_03.mdl",
  141.    "models/player/Group03m/male_04.mdl",
  142.    "models/player/Group03m/male_05.mdl"},
  143.    description = [[With your medical knowledge you work to restore players to full health.
  144.        Without a medic, people cannot be healed.
  145.        Left click with the Medical Kit to heal other players.
  146.        Right click with the Medical Kit to heal yourself.]],
  147.    weapons = {"weapon_medkit"},
  148.    command = "medic",
  149.    max = 3,
  150.    salary = GAMEMODE.Config.normalsalary,
  151.    admin = 0,
  152.    vote = false,
  153.    hasLicense = false,
  154.    medic = true,
  155.    category = "Citizens",
  156. })
  157.  
  158. TEAM_CHIEF = DarkRP.createJob("Police Chief", {
  159.    color = Color(20, 20, 255, 255),
  160.    model = "models/player/combine_super_soldier.mdl",
  161.    description = [[The Chief is the leader of the Police unit.
  162.        Coordinate the police force to enforce law in the city.
  163.        Hit a player with arrest baton to put them in jail.
  164.        Bash a player with a stunstick and they may learn to obey the law.
  165.        The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  166.        Type /wanted <name> to alert the public to the presence of a criminal.
  167.        Type /jailpos to set the Jail Position]],
  168.    weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker"},
  169.    command = "chief",
  170.    max = 1,
  171.    salary = 400,
  172.    admin = 0,
  173.    vote = false,
  174.    hasLicense = true,
  175.    chief = true,
  176.    category = "Police",
  177. })
  178.  
  179. TEAM_MAYOR = DarkRP.createJob("Mayor", {
  180.    color = Color(150, 20, 20, 255),
  181.    model = "models/player/breen.mdl",
  182.    description = [[The Mayor of the city creates laws to govern the city.
  183.    If you are the mayor you may create and accept warrants.
  184.    Type /wanted <name>  to warrant a player.
  185.    Type /jailpos to set the Jail Position.
  186.    Type /lockdown initiate a lockdown of the city.
  187.    Everyone must be inside during a lockdown.
  188.    The cops patrol the area.
  189.    /unlockdown to end a lockdown]],
  190.    weapons = {"m9k_glock"},
  191.    command = "mayor",
  192.    max = 1,
  193.    salary = 700,
  194.    admin = 0,
  195.    vote = true,
  196.    hasLicense = false,
  197.    mayor = true,
  198.    category = "Police",
  199. })
  200.  
  201. TEAM_HOBO = DarkRP.createJob("Hobo", {
  202.    color = Color(80, 45, 0, 255),
  203.    model = "models/player/corpse1.mdl",
  204.    description = [[The lowest member of society. Everybody laughs at you.
  205.        You have no home.
  206.        Beg for your food and money
  207.        Sing for everyone who passes to get money
  208.        Make your own wooden home somewhere in a corner or outside someone else's door]],
  209.     weapons = {"weapon_bugbait","weapon_fists"},
  210.     command = "hobo",
  211.     max = 5,
  212.     salary = 0,
  213.     admin = 0,
  214.     vote = false,
  215.     hasLicense = false,
  216.     candemote = false,
  217.     hobo = true,
  218.     category = "Citizens",
  219. })
  220.  
  221. TEAM_HOBO = DarkRP.createJob("Hobo Lord", {
  222.     color = Color(80, 45, 0, 255),
  223.     model = "models/player/corpse1.mdl",
  224.     description = [[The lowest member of society.
  225.         You have no home.
  226.         Beg for your food and money
  227.         Sing for everyone who passes to get money
  228.         Make your own wooden home somewhere in a corner or outside someone else's door]],
  229.    weapons = {"weapon_bugbait","weapon_crowbar"},
  230.    command = "hobolord",
  231.    max = 1,
  232.    salary = 101,
  233.    admin = 0,
  234.    vote = false,
  235.    hasLicense = false,
  236.    candemote = false,
  237.    hobo = true,
  238.    category = "Citizens",
  239.  
  240.    })
  241.  
  242. DarkRP.createCategory{
  243.    name = "Staff",
  244.    categorises = "jobs",
  245.    startExpanded = false,
  246.    color = Color(0, 0, 21, 255),
  247.    canSee = fp{fn.Id, true},
  248.    sortOrder = 255,
  249. }
  250.  
  251. --[[---------------------------------------------------------------------------
  252. Define which team joining players spawn into and what team you change to if demoted
  253. ---------------------------------------------------------------------------]]
  254. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  255. --[[---------------------------------------------------------------------------
  256. Define which teams belong to Police
  257. Police can set warrants, make people wanted and do some other police related things
  258. ---------------------------------------------------------------------------]]
  259. GAMEMODE.CivilProtection = {
  260.    [TEAM_POLICE] = true,
  261.    [TEAM_CHIEF] = true,
  262.    [TEAM_MAYOR] = true,
  263. }
  264. --[[---------------------------------------------------------------------------
  265. Jobs that are hitmen (enables the hitman menu)
  266. ---------------------------------------------------------------------------]]
  267. DarkRP.addHitmanTeam(TEAM_MOB)
  268. -------------------------------------------------------------------------------
  269.  
  270. -- Compatibility for when default teams are disabled
  271. TEAM_CITIZEN = TEAM_CITIZEN  or -1
  272. TEAM_POLICE  = TEAM_POLICE   or -1
  273. TEAM_GANG    = TEAM_GANG     or -1
  274. TEAM_MOB     = TEAM_MOB      or -1
  275. TEAM_GUN     = TEAM_GUN      or -1
  276. TEAM_MEDIC   = TEAM_MEDIC    or -1
  277. TEAM_CHIEF   = TEAM_CHIEF    or -1
  278. TEAM_MAYOR   = TEAM_MAYOR    or -1
  279. TEAM_HOBO    = TEAM_HOBO     or -1
  280. TEAM_ADMIN   = TEAM_ADMIN    or -1
  281.  
  282. -- Door groups
  283. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  284. AddDoorGroup("Gundealer only", TEAM_GUN)
  285.  
  286.  
  287. -- Agendas
  288. DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
  289. DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
  290.  
  291. -- Group chats
  292. DarkRP.createGroupChat(function(ply) return ply:isCP() end)
  293. DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
  294. DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
  295.  
  296. -- Hitman team
  297. DarkRP.addHitmanTeam(TEAM_MOB)
  298.  
  299. -- Demote groups
  300. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF,TEAM_MAYOR})
  301. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement