Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.64 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_CHEFGIGN = DarkRP.createJob("*VIP* CHEF GIGN", {
  20.    color = Color(4, 0, 254, 255),
  21.    model = {"models/dauge/bf3_gign.mdl"},
  22.    description = [[Vous êtes le CHEF du GIGN vous n'avez aucun ordre a recevoir de vos coéquipier la seul personne ayant de l autorité sur vous est le maire de la ville,
  23. le commissaire est vos coéquipier peuvent vous donnez une suggestion sur le plan d'attaque.  ]],
  24.    weapons = {"arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "m9k_m4a1", "m9k_usp"},
  25.    command = "CHEFGIGN",
  26.    max = 1,
  27.    salary = 65,
  28.    admin = 0,
  29.    vote = false,
  30.    type = "police",
  31.    hasLicense = true,
  32.    candemote = false
  33. })
  34.  
  35. TEAM_POLICENTL = DarkRP.createJob("Police nationale", {
  36.    color = Color(18, 0, 255, 255),
  37.    model = {
  38.        "models/fear/player/portal/male_1.mdl",
  39.        "models/fear/player/portal/male_2.mdl",
  40.        "models/fear/player/portal/male_3.mdl",
  41.        "models/fear/player/portal/male_4.mdl",
  42.        "models/fear/player/portal/male_5.mdl",
  43.        "models/fear/player/portal/male_6.mdl"
  44.    },
  45.    description = [[Vous êtes agent de la police nationale votre devoir faire respecte l'ordre]],
  46.     weapons = {"arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "m9k_usp"},
  47.     command = "police",
  48.     max = 15,
  49.     salary = 31,
  50.     admin = 0,
  51.     vote = false,
  52.     type = "police",
  53.     hasLicense = true,
  54.     candemote = true
  55. })
  56.  
  57. TEAM_COMMISSAIRE = DarkRP.createJob("Commissaire", {
  58.     color = Color(1, 0, 255, 255),
  59.     model = {
  60.         "models/player/police_agent/commissaire_01.mdl",
  61.         "models/player/police_agent/commissaire_02.mdl",
  62.         "models/player/police_agent/commissaire_03.mdl",
  63.         "models/player/police_agent/commissaire_04.mdl",
  64.         "models/player/police_agent/commissaire_05.mdl",
  65.         "models/player/police_agent/commissaire_06.mdl",
  66.         "models/player/police_agent/commissaire_07.mdl",
  67.         "models/player/police_agent/commissaire_08.mdl",
  68.         "models/player/police_agent/commissaire_09.mdl"
  69.     },
  70.     description = [[Vous êtes un commissaire donnez des ordres a vos coéquipier. ]],
  71.     weapons = {"arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "m9k_mossberg590", "m9k_sig_p229r"},
  72.     command = "commissaire",
  73.     max = 1,
  74.     salary = 60,
  75.     admin = 0,
  76.     vote = true,
  77.     type = "police",
  78.     hasLicense = true,
  79.     candemote = false
  80. })
  81.  
  82. TEAM_SNPRUSSE = DarkRP.createJob("*VIP* Sniper russe", {
  83.     color = Color(255, 0, 0, 255),
  84.     model = {"models/survivors/glaz_pm.mdl"},
  85.     description = [[Vous êtes un sniper d'Elite vous faites ce que vous faite la seul personne a qui vous obéissez est le maire]],
  86.    weapons = {"arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "fas2_ifak", "fas2_p226", "m9k_svu"},
  87.    command = "sniperrusse",
  88.    max = 1,
  89.    salary = 87,
  90.    admin = 0,
  91.    vote = false,
  92.    type = "police",
  93.    hasLicense = true,
  94.    candemote = false
  95. })
  96.  
  97. TEAM_AGENTRUSSE = DarkRP.createJob("Agent russe", {
  98.    color = Color(255, 0, 0, 255),
  99.    model = {"models/player/fuze_spetsnaz.mdl"},
  100.    description = [[Vous êtes un agent des spetnaz vous ne devez rendre de compte a personne sauf au maire ]],
  101.    weapons = {"arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "fas2_ak12", "fas2_ifak", "m9k_sig_p229r"},
  102.    command = "russe",
  103.    max = 1,
  104.    salary = 102,
  105.    admin = 0,
  106.    vote = false,
  107.    type = "police",
  108.    hasLicense = true,
  109.    candemote = false
  110. })
  111.  
  112. TEAM_GIGN = DarkRP.createJob("GIGN", {
  113.    color = Color(0, 14, 255, 255),
  114.    model = {
  115.        "models/player/raid/raid_04.mdl",
  116.        "models/player/raid/raid_05.mdl",
  117.        "models/player/raid/raid_06.mdl",
  118.        "models/player/raid/raid_07.mdl"
  119.    },
  120.    description = [[Vous etes un membre du gign]],
  121.    weapons = {"arrest_stick", "door_ram", "unarrest_stick", "stunstick", "weaponchecker", "m9k_famas", "m9k_hk45"},
  122.    command = "GIGN",
  123.    max = 6,
  124.    salary = 58,
  125.    admin = 0,
  126.    vote = false,
  127.    type = "police",
  128.    hasLicense = true,
  129.    candemote = true
  130. })
  131.  
  132. TEAM_SNIPGIGN = DarkRP.createJob("*VIP* Sniper GIGN", {
  133.    color = Color(31, 0, 255, 255),
  134.    model = {
  135.        "models/player/raid/raid_02.mdl",
  136.        "models/player/raid/raid_03.mdl"
  137.    },
  138.    description = [[Vous etes un sniper du GIGN]],
  139.    weapons = {"arrest_stick", "unarrest_stick", "door_ram", "weaponchecker", "stunstick", "m9k_m24", "m9k_ragingbull"},
  140.    command = "SniperGIGN",
  141.    max = 2,
  142.    salary = 60,
  143.    admin = 0,
  144.    vote = false,
  145.    type = "police",
  146.    hasLicense = true,
  147.    candemote = true
  148. })
  149.  
  150. TEAM_JUGE = DarkRP.createJob("Juge d'instruction", {
  151.    color = Color(16, 0, 255, 255),
  152.    model = {
  153.        "models/player/suits/male_01_closed_coat_tie.mdl",
  154.        "models/player/suits/male_01_closed_tie.mdl",
  155.        "models/player/suits/male_01_open.mdl",
  156.        "models/player/suits/male_01_open_tie.mdl",
  157.        "models/player/suits/male_01_open_waistcoat.mdl",
  158.        "models/player/suits/male_02_closed_coat_tie.mdl",
  159.        "models/player/suits/male_02_closed_tie.mdl",
  160.        "models/player/suits/male_02_open.mdl",
  161.        "models/player/suits/male_02_open_tie.mdl",
  162.        "models/player/suits/male_02_open_waistcoat.mdl",
  163.        "models/player/suits/male_03_closed_coat_tie.mdl",
  164.        "models/player/suits/male_03_closed_tie.mdl",
  165.        "models/player/suits/male_03_open.mdl",
  166.        "models/player/suits/male_03_open_tie.mdl",
  167.        "models/player/suits/male_03_open_waistcoat.mdl",
  168.        "models/player/suits/male_04_closed_coat_tie.mdl",
  169.        "models/player/suits/male_04_closed_tie.mdl",
  170.        "models/player/suits/male_04_open.mdl",
  171.        "models/player/suits/male_04_open_tie.mdl",
  172.        "models/player/suits/male_04_open_waistcoat.mdl",
  173.        "models/player/suits/male_05_closed_coat_tie.mdl",
  174.        "models/player/suits/male_05_closed_tie.mdl",
  175.        "models/player/suits/male_05_open.mdl",
  176.        "models/player/suits/male_05_open_tie.mdl",
  177.        "models/player/suits/male_05_open_waistcoat.mdl",
  178.        "models/player/suits/male_06_closed_coat_tie.mdl",
  179.        "models/player/suits/male_06_closed_tie.mdl",
  180.        "models/player/suits/male_06_open.mdl",
  181.        "models/player/suits/male_06_open_tie.mdl",
  182.        "models/player/suits/male_06_open_waistcoat.mdl",
  183.        "models/player/suits/male_07_closed_coat_tie.mdl",
  184.        "models/player/suits/male_07_closed_tie.mdl",
  185.        "models/player/suits/male_07_open.mdl",
  186.        "models/player/suits/male_07_open_tie.mdl",
  187.        "models/player/suits/male_07_open_waistcoat.mdl",
  188.        "models/player/suits/male_08_closed_coat_tie.mdl",
  189.        "models/player/suits/male_08_closed_tie.mdl",
  190.        "models/player/suits/male_08_open.mdl",
  191.        "models/player/suits/male_08_open_tie.mdl",
  192.        "models/player/suits/male_08_open_waistcoat.mdl",
  193.        "models/player/suits/male_09_closed_coat_tie.mdl",
  194.        "models/player/suits/male_09_closed_tie.mdl",
  195.        "models/player/suits/male_09_open.mdl",
  196.        "models/player/suits/male_09_open_tie.mdl",
  197.        "models/player/suits/male_09_open_waistcoat.mdl"
  198.    },
  199.    description = [[Vous etes un juge ]],
  200.    weapons = {"arrest_stick", "unarrest_stick", "door_ram", "stunstick", "weaponchecker", "weapon_fists", "fas2_ifak", "m9k_vikhr", "m9k_spas12", "m9k_glock", "m9k_honeybadger"},
  201.    command = "Jugedinstruction",
  202.    max = 1,
  203.    salary = 13,
  204.    admin = 0,
  205.    vote = false,
  206.     type = "police",
  207.    hasLicense = true,
  208.    candemote = false,
  209.    PlayerDeath = function(ply, weapon, killer)
  210.        ply:teamBan()
  211.        ply:changeTeam(GAMEMODE.DefaultTeam, true)
  212.        DarkRP.notifyAll(0, 4, "")
  213.    end
  214. })
  215.  
  216. TEAM_SNPALLEMAND = DarkRP.createJob("*VIP* Sniper allemand", {
  217.    color = Color(21, 255, 0, 255),
  218.    model = {"models/survivors/bandit_model.mdl"},
  219.    description = [[Vous etes un sniper allemand]],
  220.    weapons = {"arrest_stick", "unarrest_stick", "door_ram", "stunstick", "weaponchecker", "weapon_fists", "fas2_sr25"},
  221.    command = "Sniperallemand",
  222.    max = 1,
  223.    salary = 74,
  224.    admin = 0,
  225.    vote = false,
  226.     type = "police",
  227.    hasLicense = true,
  228.    candemote = false
  229. })
  230.  
  231. TEAM_AGENTAMERICAIN = DarkRP.createJob("Agent americain", {
  232.    color = Color(255, 215, 0, 255),
  233.    model = {"models/auditor/r6s/navy/blackbeard/chr_navy_richochet.mdl"},
  234.    description = [[Vous etes un agent americain qui debarque a rockford]],
  235.    weapons = {"arrest_stick", "unarrest_stick", "door_ram", "stunstick", "weaponchecker", "m9k_scar", "m9k_deagle", "weapon_fists", "fas2_ifak"},
  236.    command = "Agentamericain",
  237.    max = 1,
  238.    salary = 90,
  239.    admin = 0,
  240.    vote = false,
  241.    type = "police",
  242.    hasLicense = true,
  243.    candemote = false
  244. })
  245.  
  246. TEAM_SNPPOLONAIS = DarkRP.createJob("*VIP* Sniper polonais", {
  247.    color = Color(169, 0, 255, 255),
  248.    model = {"models/auditor/r6s/grom/zofia/chr_grom_zofia.mdl"},
  249.    description = [[Vous etes un sniper polonais qui fait parti de l etat polonais]],
  250.    weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "weapon_fists", "m9k_m98b", "m9k_glock"},
  251.    command = "Sniperpolonais",
  252.    max = 1,
  253.    salary = 68,
  254.    admin = 0,
  255.    vote = false,
  256.    type = "police",
  257.    hasLicense = true,
  258.    candemote = false
  259. })
  260.  
  261. TEAM_SECTION = DarkRP.createJob("Section judiciaire", {
  262.    color = Color(0, 44, 255, 255),
  263.    model = {
  264.        "models/player/suits/male_01_shirt.mdl",
  265.        "models/player/suits/male_01_shirt_tie.mdl",
  266.        "models/player/suits/male_02_shirt.mdl",
  267.        "models/player/suits/male_02_shirt_tie.mdl",
  268.        "models/player/suits/male_03_shirt.mdl",
  269.        "models/player/suits/male_03_shirt_tie.mdl",
  270.        "models/player/suits/male_04_shirt.mdl",
  271.        "models/player/suits/male_04_shirt_tie.mdl",
  272.        "models/player/suits/male_05_shirt_tie.mdl",
  273.        "models/player/suits/male_06_shirt.mdl",
  274.        "models/player/suits/male_06_shirt_tie.mdl",
  275.        "models/player/suits/male_07_shirt.mdl",
  276.        "models/player/suits/male_07_shirt_tie.mdl",
  277.        "models/player/suits/male_08_shirt.mdl",
  278.        "models/player/suits/male_08_shirt_tie.mdl",
  279.        "models/player/suits/male_09_shirt.mdl",
  280.        "models/player/suits/male_09_shirt_tie.mdl"
  281.    },
  282.    description = [[Vous etes un membre de la section judiciare]],
  283.    weapons = {"arrest_stick", "unarrest_stick", "door_ram", "stunstick", "weaponchecker", "m9k_remington870", "m9k_g36", "m9k_usp", "weapon_fists"},
  284.    command = "Sectionjudiciaire",
  285.    max = 4,
  286.    salary = 80,
  287.    admin = 0,
  288.    vote = false,
  289.     type = "police",
  290.    hasLicense = true,
  291.    candemote = false,
  292.    PlayerDeath = function(ply, weapon, killer)
  293.        ply:teamBan()
  294.        ply:changeTeam(GAMEMODE.DefaultTeam, true)
  295.        DarkRP.notifyAll(0, 4, "")
  296.    end
  297. })
  298.  
  299. TEAM_SNPAMERICAIN = DarkRP.createJob("*VIP* Sniper americain", {
  300.    color = Color(255, 245, 0, 255),
  301.    model = {
  302.        "models/player/portal/male_02_aperture.mdl",
  303.        "models/player/portal/male_04_aperture.mdl",
  304.        "models/player/portal/male_06_aperture.mdl",
  305.        "models/player/portal/male_07_aperture.mdl",
  306.        "models/player/portal/male_08_aperture.mdl",
  307.        "models/player/portal/male_09_aperture.mdl"
  308.    },
  309.    description = [[Vous etes un sniper du navy seals]],
  310.    weapons = {"m9k_aw50", "arrest_stick", "unarrest_stick", "stunstick", "weaponchecker", "door_ram", "m9k_deagle", "weapon_fists"},
  311.    command = "Snipernavyseals",
  312.    max = 1,
  313.    salary = 75,
  314.    admin = 0,
  315.    vote = false,
  316.    type = "police",
  317.    hasLicense = true,
  318.    candemote = false
  319. })
  320.  
  321. TEAM_AGENTPOLONAIS = DarkRP.createJob("Agent polonais", {
  322.    color = Color(235, 0, 255, 255),
  323.    model = {"models/auditor/r6s/grom/ela/chr_grom_ela.mdl"},
  324.    description = [[Vous etes un agent de l etat polonais ]],
  325.    weapons = {"arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "weapon_fists", "m9k_vector", "m9k_colt1911"},
  326.    command = "Agentpolonais",
  327.    max = 1,
  328.    salary = 80,
  329.    admin = 0,
  330.    vote = false,
  331.    type = "police",
  332.    hasLicense = true,
  333.    candemote = false
  334. })
  335.  
  336. TEAM_AGENTALLEMAND = DarkRP.createJob("Agent allemand", {
  337.    color = Color(0, 255, 51, 255),
  338.    model = {"models/auditor/r6s/yeahgah/jagerv2.mdl"},
  339.    description = [[Vous etes un agent allemand faite respecter l ordre]],
  340.    weapons = {"arrest_stick", "door_ram", "stunstick", "unarrest_stick", "weaponchecker", "m9k_m416", "m9k_usp", "weapon_fists"},
  341.    command = "Agentallemand",
  342.    max = 1,
  343.    salary = 85,
  344.    admin = 0,
  345.    vote = false,
  346.     type = "police",
  347.    hasLicense = true,
  348.    candemote = false
  349. })
  350.  
  351. TEAM_PAT = DarkRP.createJob("Patrouilleur", {
  352.    color = Color(4, 0, 255, 255),
  353.    model = {
  354.        "models/player/portal/f_police2_armor.mdl",
  355.        "models/player/portal/f_police3_armor.mdl",
  356.        "models/player/portal/f_police4_armor.mdl",
  357.        "models/player/portal/f_police5_armor.mdl",
  358.        "models/player/portal/f_police6_armor.mdl",
  359.        "models/player/portal/f_police7_armor.mdl",
  360.        "models/player/portal/f_police_armor.mdl"
  361.    },
  362.    description = [[Vous etes un patrouilleur vous n avez aucune autorisation d intervenir tant que une brigade n est pas presente sur les lieux]],
  363.    weapons = {"door_ram", "arrest_stick", "unarrest_stick", "stunstick", "weaponchecker", "weapon_fists", "fas2_glock20"},
  364.    command = "Patrouilleur",
  365.    max = 6,
  366.    salary = 52,
  367.    admin = 0,
  368.    vote = false,
  369.     type = "police",
  370.    hasLicense = true,
  371.    candemote = false
  372. })
  373.  
  374. --[[---------------------------------------------------------------------------
  375. Define which team joining players spawn into and what team you change to if demoted
  376. ---------------------------------------------------------------------------]]
  377. GAMEMODE.DefaultTeam = TEAM_CITIZEN
  378. --[[---------------------------------------------------------------------------
  379. Define which teams belong to civil protection
  380. Civil protection can set warrants, make people wanted and do some other police related things
  381. ---------------------------------------------------------------------------]]
  382. GAMEMODE.CivilProtection = {
  383.    [TEAM_POLICENTL] = true,
  384.    [TEAM_COMMMISSAIRE] = true,
  385.    [TEAM_MAYOR] = true,
  386.     [TEAM_PAT] = true,
  387.     [TEAM_AGENTALLEMAND] = true,
  388.     [TEAM_AGENTPOLONAIS] = true,
  389.     [TEAM_AGENTAMERICAIN] = true,
  390.     [TEAM_SECTION] = true,
  391.     [TEAM_SNPPOLONAIS] true,
  392.     [TEAM_SNPAMERICAIN] true,
  393.     [TEAM_SNPALLEMAND] true,
  394.     [TEAM_JUGE] true,
  395.     [TEAM_SNIPGIGN] true,
  396.     [TEAM_GIGN] true,
  397.     [TEAM_SNPRUSSE] true,
  398.     [TEAM_AGENTRUSSE] true,
  399.     [TEAM_CHEFGIGN] true,
  400.    
  401. }
  402. --[[---------------------------------------------------------------------------
  403. Jobs that are hitmen (enables the hitman menu)
  404. ---------------------------------------------------------------------------]]
  405. DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement