1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

My custom police job doesn't get the police commands

Discussion in 'Player General Chat' started by UnhappyGeek, Aug 6, 2019.

  1. UnhappyGeek

    UnhappyGeek New Member

    this is my job code:
    TEAM_SO19 = DarkRP.createJob("SO19", {
    color = Color(0, 0, 255, 255),
    model = {"models/player/kerry/swat_ls_2.mdl"},
    description = [[You are a member of SO19, Special and tactical forces, heavier equiped Police for taking down the largest criminals and fighting the mafia.

    Raid: yes
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "m9k_fists", "weapon_pass_rp", "weapon_physcannon", "m9k_m92beretta", "m9k_g36", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick", "m9k_knife", "m9k_remington870"},
    command = "SO19",
    max = 2,
    salary = 130,
    admin = 0,
    vote = true,
    hasLicense = true,
    candemote = false,
    category = "Civil Protection",
    police = true,
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    TEAM_SO19 = DarkRP.createJob("SO19 Medic", {
    color = Color(0, 0, 255, 255),
    model = {"models/player/kerry/swat_ls_2.mdl"},
    description = [[You are a member of SO19, Special and tactical forces, heavier equiped Police for taking down the largest criminals and fighting the mafia.

    Raid: yes
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "m9k_fists", "weapon_pass_rp", "weapon_physcannon", "m9k_m92beretta", "m9k_g36", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick", "m9k_knife", "m9k_remington870", "weapon_medkit"},
    command = "SO19M",
    max = 1,
    salary = 130,
    admin = 0,
    vote = true,
    hasLicense = true,
    candemote = false,
    category = "Civil Protection",
    police = true,
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    TEAM_SO19 = DarkRP.createJob("SO19 Heavy", {
    color = Color(0, 0, 255, 255),
    model = {"models/player/kerry/swat_ls_2.mdl"},
    description = [[You are a member of SO19, Special and tactical forces, heavier equiped Police for taking down the largest criminals and fighting the mafia.

    Raid: yes
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "m9k_fists", "weapon_pass_rp", "weapon_physcannon", "m9k_m92beretta", "m9k_g36", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick", "m9k_knife", "m9k_remington870", "m9k_m249lmg"},
    command = "SO19H",
    max = 1,
    salary = 130,
    admin = 0,
    vote = true,
    hasLicense = true,
    candemote = false,
    category = "Civil Protection",
    police = true,
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    TEAM_SO19 = DarkRP.createJob("SO19 Sniper", {
    color = Color(0, 0, 255, 255),
    model = {"models/player/kerry/swat_ls_2.mdl"},
    description = [[You are a member of SO19, Special and tactical forces, heavier equiped Police for taking down the largest criminals and fighting the mafia.

    Raid: yes
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "m9k_fists", "weapon_pass_rp", "weapon_physcannon", "m9k_m92beretta", "m9k_g36", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick", "m9k_knife", "m9k_remington870", "m9k_aw50"},
    command = "SO19S",
    max = 1,
    salary = 130,
    admin = 0,
    vote = true,
    hasLicense = true,
    candemote = false,
    category = "Civil Protection",
    police = true,
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    TEAM_STAFF = DarkRP.createJob("Staff", {
    color = Color(4, 247, 247, 255),
    model = {"models/player/legoyoda2.mdl"},
    description = [[Staff member, Fight the minges.]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "weapon_pass_rp", "weapon_physcannon", "weapon_m4a1hb"},
    command = "staff",
    max = 0,
    salary = 200,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(1000)
    ply:SetHealth(1000)
    end
    })

    TEAM_POLICE = DarkRP.createJob("Police Officer", {
    color = Color(65, 91, 214, 255),
    model = {"models/player/uk_police/uk_police_09.mdl", "models/player/uk_police/uk_police_02.mdl", "models/player/uk_police/uk_police_05.mdl", "models/player/uk_police/uk_police_04.mdl", "models/player/uk_police/uk_police_03.mdl", "models/player/uk_police/uk_police_08.mdl"},
    description = [[You are a Police Officer, keep the streets safe from criminals.
    Raid: yes
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "weapon_pass_rp", "weapon_physcannon", "m9k_fists", "m9k_m92beretta", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick"},
    command = "police",
    max = 0,
    salary = 125,
    admin = 0,
    vote = false,
    hasLicense = true,
    candemote = false,
    category = "Civil Protection",
    police = true,
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    TEAM_POLICE = DarkRP.createJob("Police Medic", {
    color = Color(65, 91, 214, 255),
    model = {"models/player/uk_police/uk_police_09.mdl", "models/player/uk_police/uk_police_02.mdl", "models/player/uk_police/uk_police_05.mdl", "models/player/uk_police/uk_police_04.mdl", "models/player/uk_police/uk_police_03.mdl", "models/player/uk_police/uk_police_08.mdl"},
    description = [[You are a Police Officer, keep the streets safe from criminals.
    Raid: yes
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "weapon_pass_rp", "weapon_physcannon", "m9k_fists", "m9k_m92beretta", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick", "weapon_medkit"},
    command = "policem",
    max = 2,
    salary = 125,
    admin = 0,
    vote = false,
    hasLicense = true,
    candemote = false,
    category = "Civil Protection",
    police = true,
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    TEAM_POLICE = DarkRP.createJob("Police Chief", {
    color = Color(65, 91, 214, 255),
    model = {"models/player/suits/male_06_closed_tie.mdl", "models/player/suits/male_06_open_tie.mdl", "models/player/suits/male_06_shirt.mdl", "models/player/suits/male_06_shirt_tie.mdl"},
    description = [[You are a Police Chief, keep the streets safe from criminals.
    Raid: yes
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "weapon_pass_rp", "weapon_physcannon", "m9k_fists", "m9k_m92beretta", "arrest_stick", "unarrest_stick", "weaponchecker", "door_ram", "stunstick"},
    command = "policec",
    max = 0,
    salary = 150,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    M_MI5 = DarkRP.createJob("MI5 Agent", {
    color = Color(71, 71, 71, 255),
    model = {"models/player/smith.mdl"},
    description = [[You are a top MI5 Agent organise police Raids and fight the Mafia.

    Raid: yes
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "m9k_fists", "weapon_pass_rp", "weapon_physcannon", "m9k_mp5sd", "m9k_m92beretta"},
    command = "mi5",
    max = 3,
    salary = 175,
    admin = 0,
    vote = false,
    hasLicense = true,
    candemote = false,
    category = "Civil Protection",
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    TEAM_MAYORSBODYGUARD = DarkRP.createJob("Mayors Bodyguard", {
    color = Color(0, 47, 255, 255),
    model = {"models/fearless/sru01.mdl", "models/fearless/sru02.mdl"},
    description = [[You are the Mayors Bodyguard, its your job to protect the Mayor at all costs.
    Raid: no
    Base: no
    Mug: no
    Printers: no
    Bitminers: no]],
    weapons = {"keys", "weapon_physgun", "gmod_tool", "m9k_fists", "weapon_pass_rp", "weapon_physcannon", "m9k_m92beretta", "m9k_mp7"},
    command = "mayorsguard",
    max = 2,
    salary = 150,
    admin = 0,
    vote = false,
    hasLicense = true,
    candemote = false,
    category = "Civil Protection",
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    end
    })
    --[[---------------------------------------------------------------------------
    Define which team joining players spawn into and what team you change to if demoted
    ---------------------------------------------------------------------------]]
    GAMEMODE.DefaultTeam = TEAM_CIVILIAN
    --[[---------------------------------------------------------------------------
    Define which teams belong to civil protection
    Civil protection can set warrants, make people wanted and do some other police related things
    ---------------------------------------------------------------------------]]
    GAMEMODE.CivilProtection = {
    [TEAM_POLICE] = true,
    [TEAM_MAYOR] = true,
    [TEAM_SO19] = true,
    [TEAM_MAYORSBODYGUARD] = true,
    [TEAM_MI5] = true,
    }
    --[[---------------------------------------------------------------------------
    Jobs that are hitmen (enables the hitman menu)
    ---------------------------------------------------------------------------]]
    DarkRP.addHitmanTeam(TEAM_HITMAN)
     
    Last edited: Aug 6, 2019

Share This Page