1. 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.

Help With Custom Jobs!

Discussion in 'DarkRP Modding Questions & Help' started by A Person XD, Feb 8, 2018.

  1. A Person XD

    A Person XD New Member

    Ok so im trying to start a server and im have a issue

    [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:119: '}' expected (to close '{' at line 114) near 'command'
    1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0

    so here is my jub.lua hope you can help!

    Add your custom jobs under the following line:
    ---------------------------------------------------------------------------]]



    --
    EAM_THIEF = DarkRP.createJob("Thief", {
    color = Color(0, 0, 0, 255),
    model = "models/player/robber.mdl",
    description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
    weapons = {"lockpick"}, -- You may wanna find a pickpocket swep and add it here.
    command = "thief",
    max = 8,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = false,
    category = "Citizens",
    })

    TEAM_SS = DarkRP.createJob("Secret Service", {
    color = Color(100, 20, 20, 255),
    model = "models/player/macdguy.mdl",
    description = [[You are responsible for protecting the mayor.
    Take care of the old fellow, he is vanuarable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
    weapons = {"weapon_deagle2", "stunstick", "weaponchecker"},
    command = "ss",
    max = 2,
    salary = 65,
    admin = 0,
    vote = true,
    hasLicense = false,
    ammo = {
    ["pistol"] = 60,
    },
    category = "Civil Protection",
    })

    TEAM_SWAT = DarkRP.createJob("Swat", {
    color = Color(25, 25, 170, 255),
    model = {"models/player/swat.mdl"},
    description = [[The protector of every citizen that lives in the city.
    You have the power to arrest criminals and protect innocents.
    Hit a player with your arrest baton to put them in jail.
    Bash a player with a stunstick and they may learn to obey the law.
    The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
    The Battering Ram can also unfreeze frozen props (if enabled).
    Type /wanted <name> to alert the public to the presence of a criminal.]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
    command = "Swat",
    max = 4,
    salary = 85,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
    "Please don't abuse your job",
    "When you arrest someone they are auto transported to jail.",
    "They are auto let out of jail after some time",
    "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
    "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
    "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
    "Type /jailpos to set the jail position"
    },
    category = "Civil Protection",
    })


    TEAM_HITMAN = DarkRP.createJob("Hitman", {
    color = Color(0, 0, 0, 255),
    model = "models/player/sunabouzu.mdl",
    description = [[People hire you to take out other people,
    this job require you to be completely focussed.
    A single breath can make you loose a shot.]],
    weapons = {"m9k_m24"},
    command = "hitman",
    max = 2,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = false,
    category = "Citizens",
    })

    TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
    color = Color(170, 0, 0, 255),
    model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
    description = [[Admin on duty is when you as an admin, is ready to make sure the server stays at its best.
    It's up to you to patrol and respond to admin calls.]],
    weapons = {},
    command = "aod",
    max = 0,
    salary = 100,
    admin = 0,
    vote = false,
    hasLicense = false,
    customCheck = function(ply) return ply:IsAdmin() end,

    TEAM_TERRORL = DarkRP.createJob("Terrorist Leader", {
    color = Color(255, 140, 0, 255),
    model = "models/codplayers/opfor4.mdl",
    description = [[]],
    weapons = {"m9k_ak47", "m9k_ied_detonator", "m9k_suicide_bomb", "m9k_proxy_mine", "m9k_rpg7"}
    command = "terroristl",
    max = 1,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = false,
    category = "Citizens",
    })

    TEAM_TERROR = DarkRP.createJob("Terrorist", {
    color = Color(255, 140, 0, 255),
    model = "models/codplayers/opfor4.mdl",
    description = [[]],
    weapons = {"m9k_ak47"}, -- You may wanna find a pickpocket swep and add it here.
    command = "terrorist",
    max = 3,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = false,
    category = "Citizens",
    })

    TEAM_SWATS = DarkRP.createJob("Swat Sniper", {
    color = Color(20, 20, 255, 255),
    model = "models/mw2guy/diver/diver_03.mdl",
    description = [[The protector of every citizen that lives in the city.
    You have the power to arrest criminals and protect innocents.
    Hit a player with your arrest baton to put them in jail.
    Bash a player with a stunstick and they may learn to obey the law.
    The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
    The Battering Ram can also unfreeze frozen props (if enabled).
    Type /wanted <name> to alert the public to the presence of a criminal.]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
    command = "Swat",
    max = 1,
    salary = 120,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
    "Please don't abuse your job",
    "When you arrest someone they are auto transported to jail.",
    "They are auto let out of jail after some time",
    "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
    "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
    "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
    "Type /jailpos to set the jail position"
    },
    category = "Civil Protection",
    })

    TEAM_SWATL = DarkRP.createJob("Swat Leader", {
    color = Color(20, 20, 255, 255),
    model = {"models/codmw2/codmw2hexe.mdl"},
    description = [[The protector of every citizen that lives in the city.
    You have the power to arrest criminals and protect innocents.
    Hit a player with your arrest baton to put them in jail.
    Bash a player with a stunstick and they may learn to obey the law.
    The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
    The Battering Ram can also unfreeze frozen props (if enabled).
    Type /wanted <name> to alert the public to the presence of a criminal.]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
    command = "Swat",
    max = 1,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
    "Please don't abuse your job",
    "When you arrest someone they are auto transported to jail.",
    "They are auto let out of jail after some time",
    "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
    "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
    "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
    "Type /jailpos to set the jail position"
    },
    category = "Civil Protection",
    })

    TEAM_GUARD = DarkRP.createJob("Guard", {
    color = Color(0,200,50,255),
    model = "models/player/barney.mdl",
    description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
    weapons = {"stunstick"},
    command = "guard",
    max = 1,
    salary = 85,
    admin = 0,
    vote = false,
    hasLicense = true,
    category = "Citizens",
    })

    TEAM_MAYOR = DarkRP.createJob("Mayor", {

    color = Color(150, 20, 20, 255),

    model = "models/player/breen.mdl",

    description = [[The Mayor of the city creates laws to govern the city.

    If you are the mayor you may create and accept warrants.

    Type /wanted <name> to warrant a player.

    Type /jailpos to set the Jail Position.

    Type /lockdown initiate a lockdown of the city.

    Everyone must be inside during a lockdown.

    The cops patrol the area.

    /unlockdown to end a lockdown]],

    weapons = {""},

    command = "mayor",

    max = 1,

    salary = 100,

    admin = 0,

    vote = true,

    hasLicense = true,

    mayor = true,

    })
     
  2. Amber°

    Amber° New Member

    The SWAT commands are inflicting on each other. You have to change the commands so that there aren't similar ones or else Dark RP throws a fit >-<
     
    A Person XD likes this.
  3. A Person XD

    A Person XD New Member

    Ok so i dont really get what you mean, And also what would i change them to?
    --- Double Post Merged, Feb 8, 2018 ---
    Do I Change This?: "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
    "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
    "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
     
    Last edited: Feb 8, 2018
  4. Amber°

    Amber° New Member

    Sorry for the late response.
    Code (Text):

    TEAM_SWATS = DarkRP.createJob("Swat Sniper", {
    color = Color(20, 20, 255, 255),
    model = "models/mw2guy/diver/diver_03.mdl",
    description = [[The protector of every citizen that lives in the city.
    You have the power to arrest criminals and protect innocents.
    Hit a player with your arrest baton to put them in jail.
    Bash a player with a stunstick and they may learn to obey the law.
    The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
    The Battering Ram can also unfreeze frozen props (if enabled).
    Type /wanted <name> to alert the public to the presence of a criminal.]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
    command = "Swat",
    max = 1,
    salary = 120,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
    "Please don't abuse your job",
    "When you arrest someone they are auto transported to jail.",
    "They are auto let out of jail after some time",
    "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
    "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
    "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
    "Type /jailpos to set the jail position"
    },
    category = "Civil Protection",
    })

    TEAM_SWATL = DarkRP.createJob("Swat Leader", {
    color = Color(20, 20, 255, 255),
    model = {"models/codmw2/codmw2hexe.mdl"},
    description = [[The protector of every citizen that lives in the city.
    You have the power to arrest criminals and protect innocents.
    Hit a player with your arrest baton to put them in jail.
    Bash a player with a stunstick and they may learn to obey the law.
    The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
    The Battering Ram can also unfreeze frozen props (if enabled).
    Type /wanted <name> to alert the public to the presence of a criminal.]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
    command = "Swat",
    max = 1,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = true,
    help = {
    "Please don't abuse your job",
    "When you arrest someone they are auto transported to jail.",
    "They are auto let out of jail after some time",
    "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
    "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
    "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
    "Type /jailpos to set the jail position"
    },
    category = "Civil Protection",
    })
    Where it says "command = "Swat", is where the error is located. You have multiple SWAT jobs with the same command. Add an extra digit or whatever.
     

Share This Page