Guest User

jobs.lua

a guest
Nov 11th, 2014
12
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local GAMEMODE = GAMEMODE or GM
  2. /*--------------------------------------------------------
  3. Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
  4. --------------------------------------------------------*/
  5. TEAM_CITIZEN = DarkRP.createJob("Citizen", {
  6.     color = Color(20, 150, 20, 255),
  7.     model = {
  8.         "models/player/Group01/Female_01.mdl",
  9.         "models/player/Group01/Female_02.mdl",
  10.         "models/player/Group01/Female_03.mdl",
  11.         "models/player/Group01/Female_04.mdl",
  12.         "models/player/Group01/Female_06.mdl",
  13.         "models/player/group01/male_01.mdl",
  14.         "models/player/Group01/Male_02.mdl",
  15.         "models/player/Group01/male_03.mdl",
  16.         "models/player/Group01/Male_04.mdl",
  17.         "models/player/Group01/Male_05.mdl",
  18.         "models/player/Group01/Male_06.mdl",
  19.         "models/player/Group01/Male_07.mdl",
  20.         "models/player/Group01/Male_08.mdl",
  21.         "models/player/Group01/Male_09.mdl"
  22.     },
  23.     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.]],
  24.     weapons = {"weapon_gphone"},
  25.     command = "citizen",
  26.     max = 0,
  27.     salary = GAMEMODE.Config.normalsalary,
  28.     admin = 0,
  29.     vote = false,
  30.     hasLicense = false,
  31.     candemote = false
  32. })
  33.  
  34. TEAM_POLICE = DarkRP.createJob("Police Officer", {
  35.     color = Color(25, 25, 170, 255),
  36.     model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
  37.     description = [[The protector of every citizen that lives in the city.
  38.         You have the power to arrest criminals and protect innocents.
  39.         Hit a player with your arrest baton to put them in jail.
  40.         Bash a player with a stunstick and they may learn to obey the law.
  41.         The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
  42.         The Battering Ram can also unfreeze frozen props (if enabled).
  43.         Type /wanted <name> to alert the public to the presence of a criminal.]],
  44.     weapons = {"arrest_stick", "unarrest_stick", "fas2_uzi", "stunstick", "door_ram", "weaponchecker", "weapon_gphone"},
  45.     command = "cp",
  46.     max = 4,
  47.     salary = GAMEMODE.Config.normalsalary * 1.45,
  48.     admin = 0,
  49.     vote = true,
  50.     hasLicense = true,
  51.     ammo = {
  52.         ["pistol"] = 60,
  53.     }
  54. })
  55.  
  56. TEAM_GANG = DarkRP.createJob("Gangster", {
  57.     color = Color(75, 75, 75, 255),
  58.     model = {
  59.         "models/player/Group03/Female_01.mdl",
  60.         "models/player/Group03/Female_02.mdl",
  61.         "models/player/Group03/Female_03.mdl",
  62.         "models/player/Group03/Female_04.mdl",
  63.         "models/player/Group03/Female_06.mdl",
  64.         "models/player/group03/male_01.mdl",
  65.         "models/player/Group03/Male_02.mdl",
  66.         "models/player/Group03/male_03.mdl",
  67.         "models/player/Group03/Male_04.mdl",
  68.         "models/player/Group03/Male_05.mdl",
  69.         "models/player/Group03/Male_06.mdl",
  70.         "models/player/Group03/Male_07.mdl",
  71.         "models/player/Group03/Male_08.mdl",
  72.         "models/player/Group03/Male_09.mdl"},
  73.     description = [[The lowest person of crime.
  74.         A gangster generally works for the Mobboss who runs the crime family.
  75.         The Mob boss sets your agenda and you follow it or you might be punished.]],
  76.     weapons = {"weapon_gphone"},
  77.     command = "gangster",
  78.     max = 3,
  79.     salary = GAMEMODE.Config.normalsalary,
  80.     admin = 0,
  81.     vote = false,
  82.     hasLicense = false
  83. })
  84.  
  85. TEAM_MOB = DarkRP.createJob("Gang Boss", {
  86.     color = Color(25, 25, 25, 255),
  87.     model = "models/player/gman_high.mdl",
  88.     description = [[The Gang boss is the boss of the criminals in the city.
  89.         With his power he coordinates the gangsters and forms an efficient crime organization.
  90.         He has the ability to break into houses by using a lockpick.
  91.         The Mob boss posesses the ability to unarrest you.]],
  92.     weapons = {"lockpick", "unarrest_stick", "weapon_gphone"},
  93.     command = "mobboss",
  94.     max = 1,
  95.     salary = GAMEMODE.Config.normalsalary * 1.34,
  96.     admin = 0,
  97.     vote = false,
  98.     hasLicense = false
  99. })
  100.  
  101. TEAM_MEDIC = DarkRP.createJob("Medic", {
  102.     color = Color(47, 79, 79, 255),
  103.     model = "models/player/kleiner.mdl",
  104.     description = [[With your medical knowledge you work to restore players to full health.
  105.         Without a medic, people cannot be healed.
  106.         Left click with the Medical Kit to heal other players.
  107.         Right click with the Medical Kit to heal yourself.]],
  108.     weapons = {"med_kit", "weapon_gphone"},
  109.     command = "medic",
  110.     max = 3,
  111.     salary = GAMEMODE.Config.normalsalary,
  112.     admin = 0,
  113.     vote = false,
  114.     hasLicense = false,
  115.     medic = true
  116. })
  117.  
  118. TEAM_CHIEF = DarkRP.createJob("Police Chief", {
  119.     color = Color(20, 20, 255, 255),
  120.     model = "models/player/combine_soldier_prisonguard.mdl",
  121.     description = [[The Chief is the leader of the Civil Protection unit.
  122.         Coordinate the police force to enforce law in the city.
  123.         Hit a player with arrest baton to put them in jail.
  124.         Bash a player with a stunstick and they may learn to obey the law.
  125.         The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
  126.         Type /wanted <name> to alert the public to the presence of a criminal.
  127.         Type /jailpos to set the Jail Position]],
  128.     weapons = {"arrest_stick", "unarrest_stick", "fas2_m4a1", "stunstick", "door_ram", "weaponchecker", "weapon_gphone"},
  129.     command = "chief",
  130.     max = 1,
  131.     salary = GAMEMODE.Config.normalsalary * 1.67,
  132.     admin = 0,
  133.     vote = false,
  134.     hasLicense = true,
  135.     chief = true,
  136.     NeedToChangeFrom = TEAM_POLICE,
  137.     ammo = {
  138.         ["pistol"] = 60,
  139.     }
  140. })
  141.  
  142. TEAM_MAYOR = DarkRP.createJob("Governor", {
  143.     color = Color(150, 20, 20, 255),
  144.     model = "models/player/breen.mdl",
  145.     description = [[The Governor of the city creates laws to govern the city.
  146.     If you are the governor you may create and accept warrants.
  147.     Type /wanted <name>  to warrant a player.
  148.     Type /jailpos to set the Jail Position.
  149.     Type /lockdown initiate a lockdown of the city.
  150.     Everyone must be inside during a lockdown.
  151.     The cops patrol the area.
  152.     /unlockdown to end a lockdown]],
  153.     weapons = {"weapon_gphone"},
  154.     command = "mayor",
  155.     max = 1,
  156.     salary = GAMEMODE.Config.normalsalary * 1.89,
  157.     admin = 0,
  158.     vote = true,
  159.     hasLicense = false,
  160.     mayor = true
  161. })
  162.  
  163. TEAM_HOBO = DarkRP.createJob("Homeless Man", {
  164.     color = Color(80, 45, 0, 255),
  165.     model = "models/player/corpse1.mdl",
  166.     description = [[The lowest member of society. Everybody laughs at you.
  167.         You have no home.
  168.         Beg for your food and money
  169.         Sing for everyone who passes to get money
  170.         Make your own wooden home somewhere in a corner or outside someone else's door]],
  171.     weapons = {"weapon_gpee", "weapon_gphone"},
  172.     command = "hobo",
  173.     max = 5,
  174.     salary = 0,
  175.     admin = 0,
  176.     vote = false,
  177.     hasLicense = false,
  178.     candemote = false,
  179.     hobo = true
  180.  
  181. })
  182.  
  183. TEAM_HOBOLEADER = DarkRP.createJob("Homeless People Leader", {
  184.     color = Color(80, 45, 0, 255),
  185.     model = "models/player/corpse1.mdl",
  186.     description = [[Lead the Homeless people to victory! You may have a shared hobo shack
  187.         and dictate. Organizate a mug to someone or simply create a religion about homeless
  188.         people!]],
  189.     weapons = {"weapon_gpee", "weapon_gphone"},
  190.     command = "hoboleader",
  191.     max = 5,
  192.     salary = 0,
  193.     admin = 0,
  194.     vote = false,
  195.     hasLicense = false,
  196.     candemote = false,
  197.     hobo = true
  198.  
  199. })
  200.  
  201. TEAM_THIEF = DarkRP.createJob("Thief", {
  202.    color = Color(0, 255, 255, 255),
  203.    model = {"models/player/robber.mdl"},
  204.    description = [[You are a Thief. Raid, mug anything you want. However, you may base with other criminals and party raid within !party]],
  205.    weapons = {"keypad_cracker", "lockpick", "weapon_gphone", "fas2_dv2"},
  206.    command = "thief",
  207.    max = 5,
  208.    salary = 45,
  209.    admin = 0,
  210.    vote = false,
  211.    hasLicense = false,
  212.    
  213. })
  214.  
  215. TEAM_LGUN = DarkRP.createJob("Light Gun Dealer", {
  216.    color = Color(255, 132, 0, 255),
  217.    model = {"models/player/monk.mdl"},
  218.    description = [[You are a light gun dealer. Sell all manner of small arms. Beware, if you are caught selling illegal automatic weapons, you can be arrested!]],
  219.    weapons = {"weapon_gphone"},
  220.    command = "lgun",
  221.    max = 4,
  222.    salary = 75,
  223.    admin = 0,
  224.    vote = false,
  225.    hasLicense = false,
  226.    
  227. })
  228.  
  229. TEAM_HGUN = DarkRP.createJob("Heavy Gun Dealer", {
  230.    color = Color(255, 132, 0, 255),
  231.    model = {"models/player/monk.mdl"},
  232.    description = [[You are a heavy gun dealer. Sell all manner of large arms. Beware, if you are caught selling illegal automatic weapons, you can be arrested!]],
  233.    weapons = {"weapon_gphone"},
  234.    command = "hgun",
  235.    max = 2,
  236.    salary = 75,
  237.    admin = 0,
  238.    vote = false,
  239.    hasLicense = false,
  240.    
  241. })
  242.  
  243. TEAM_MGUN = DarkRP.createJob("Melee Gun Dealer", {
  244.    color = Color(255, 132, 0, 255),
  245.    model = {"models/player/big_boss.mdl"},
  246.    description = [[You are a Melee Weapon Dealer. Sell people some machetes to chop people's heads or simply be yourself and have a shop.]],
  247.     weapons = {"weapon_gphone", "fas2_dv2"},
  248.     command = "mgun",
  249.     max = 3,
  250.     salary = 75,
  251.     admin = 0,
  252.     vote = false,
  253.     hasLicense = false,
  254.      
  255. })
  256.  
  257. TEAM_ATTACHEMENT = DarkRP.createJob("Attachements Dealer", {
  258.     color = Color(255, 132, 0, 255),
  259.     model = {"models/player/shaun.mdl"},
  260.     description = [[You sell Attachements for people to use with guns brand FA:S. M9K Branded guns suck! GG!]],
  261.     weapons = {"weapon_gphone"},
  262.     command = "attachement",
  263.     max = 3,
  264.     salary = 75,
  265.     admin = 0,
  266.     vote = false,
  267.     hasLicense = false,
  268.      
  269. })
  270.  
  271. TEAM_DJ = DarkRP.createJob("Disco DJ", {
  272.     color = Color(238, 0, 255, 255),
  273.     model = {"models/player/daftpunk/daft_gold.mdl"},
  274.     description = [[Do your business, what else? Play music, I don't know. Go join a club or something. MAKE PEOPLE HAPPY WITH YOUR RADIO!]],
  275.     weapons = {"weapon_gphone"},
  276.     command = "dj",
  277.     max = 2,
  278.     salary = 50,
  279.     admin = 0,
  280.     vote = false,
  281.     hasLicense = false,
  282.  
  283. })
  284.  
  285. TEAM_DISCO = DarkRP.createJob("Disco Manager", {
  286.     color = Color(170, 0, 255, 255),
  287.     model = {"models/player/romanbellic.mdl"},
  288.     description = [[Create a disco place for a DJ to work in. Collect money as a fee for coming into the club.]],
  289.     weapons = {"weapon_gphone"},
  290.     command = "disco",
  291.     max = 1,
  292.     salary = 25,
  293.     admin = 0,
  294.     vote = false,
  295.     hasLicense = false,
  296.    
  297. })
  298.  
  299. TEAM_HOTEL = DarkRP.createJob("Hotel Manager", {
  300.     color = Color(238, 255, 0, 255),
  301.     model = {"models/player/drpyspy/spy.mdl"},
  302.     description = [[Make a hotel out of a building with multiple rooms, then rent them out to players so they can build in them! Feel free to make house rules, as long as they don't violate server rules]],
  303.     weapons = {"weapon_gphone"},
  304.     command = "hotelm",
  305.     max = 1,
  306.     salary = 45,
  307.     admin = 0,
  308.     vote = false,
  309.     hasLicense = false
  310.    
  311. })
  312.  
  313. TEAM_HOTELSTAFF = DarkRP.createJob("Hotel Staff Member", {
  314.     color = Color(238, 255, 0, 255),
  315.     model = {"models/odessa.mdl"},
  316.     description = [[Help out your manager! Check people's rooms for any illegal thing or help customers!]],
  317.     weapons = {"weapon_gphone"},
  318.     command = "hotelstaff",
  319.     max = 3,
  320.     salary = 30,
  321.     admin = 0,
  322.     vote = false,
  323.     hasLicense = false
  324.    
  325. })
  326.  
  327.  
  328. if not DarkRP.disabledDefaults["modules"]["hungermod"] then
  329.     TEAM_COOK = DarkRP.createJob("Cook", {
  330.         color = Color(238, 99, 99, 255),
  331.         model = "models/player/mossman.mdl",
  332.         description = [[As a cook, it is your responsibility to feed the other members of your city.
  333.             You can spawn a microwave and sell the food you make:
  334.             /buymicrowave]],
  335.         weapons = {},
  336.         command = "cook",
  337.         max = 2,
  338.         salary = 45,
  339.         admin = 0,
  340.         vote = false,
  341.         hasLicense = false,
  342.         cook = true
  343.     })
  344. end
  345.  
  346. -- Compatibility for when default teams are disabled
  347. TEAM_CITIZEN = TEAM_CITIZEN  or -1
  348. TEAM_POLICE  = TEAM_POLICE   or -1
  349. TEAM_GANG    = TEAM_GANG     or -1
  350. TEAM_MOB     = TEAM_MOB      or -1
  351. TEAM_GUN     = TEAM_GUN      or -1
  352. TEAM_MEDIC   = TEAM_MEDIC    or -1
  353. TEAM_CHIEF   = TEAM_CHIEF    or -1
  354. TEAM_MAYOR   = TEAM_MAYOR    or -1
  355. TEAM_HOBO    = TEAM_HOBO     or -1
  356.  
  357.  
  358. /*
  359. --------------------------------------------------------
  360. HOW TO MAKE A DOOR GROUP
  361. --------------------------------------------------------
  362. AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
  363.  
  364.  
  365. The default door groups, can also be used as examples:
  366. */
  367. AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
  368. AddDoorGroup("Gundealer only", TEAM_GUN)
  369.  
  370.  
  371. /*
  372. --------------------------------------------------------
  373. HOW TO MAKE AN AGENDA
  374. --------------------------------------------------------
  375. AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
  376.  
  377. The default agenda's, can also be used as examples:
  378. */
  379. AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
  380. AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})
  381.  
  382.  
  383. /*
  384. ---------------------------------------------------------------------------
  385. HOW TO MAKE A GROUP CHAT
  386. ---------------------------------------------------------------------------
  387. Pick one!
  388. GAMEMODE:AddGroupChat(List of team variables separated by comma)
  389.  
  390. or
  391.  
  392. GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
  393. This one is for people who know how to script Lua.
  394.  
  395. */
  396. GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
  397. GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)
  398.  
  399. /*---------------------------------------------------------------------------
  400. Define which team joining players spawn into and what team you change to if demoted
  401. ---------------------------------------------------------------------------*/
  402. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  403.  
  404. /*---------------------------------------------------------------------------
  405. Define which teams belong to civil protection
  406. Civil protection can set warrants, make people wanted and do some other police related things
  407. ---------------------------------------------------------------------------*/
  408. GAMEMODE.CivilProtection = {
  409.     [TEAM_POLICE] = true,
  410.     [TEAM_CHIEF] = true,
  411.     [TEAM_MAYOR] = true,
  412. }
  413.  
  414. /*---------------------------------------------------------------------------
  415. Enable hitman goodies on this team
  416. ---------------------------------------------------------------------------*/
  417. DarkRP.addHitmanTeam(TEAM_MOB)
  418.  
  419. /*---------------------------------------------------------------------------
  420. Default demote groups
  421. ---------------------------------------------------------------------------*/
  422. DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
  423. DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
RAW Paste Data