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.

Trouble creating customs jobs to replace defaults.

Discussion in 'Modder General Chat' started by Achilles, Nov 17, 2017.

  1. Achilles

    Achilles New Member

    I need some help replacing the default jobs for darkrp, I have already disabled the defaults. I've looked for quite awhile and haven't found much, is there any help you can offer?

    Code (Text):
    --[[---------------------------------------------------------------------------
    DarkRP custom jobs
    ---------------------------------------------------------------------------
    This file contains your custom jobs.
    This file should also contain jobs from DarkRP that you edited.

    Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
          Once you've done that, copy and paste the job to this file and edit it.

    The default jobs can be found here:
    https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua

    For examples and explanation please visit this wiki page:
    http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields

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

    TEAM_CITIZEN = DarkRP.createJob("Citizen", ({
        color = Color(20, 150, 20, 255),
        model = {
            "models/player/Group01/medieval_1.mdl",
            "models/player/Group01/medieval_2.mdl",
            "models/player/Group01/medieval_3.mdl",
            "models/player/Group01/medieval_4.mdl",
            "models/player/Group01/medieval_5.mdl",
            "models/player/group01/medieval_6.mdl",
            "models/player/Group01/medieval_7.mdl",
            "models/player/Group01/medieval_8.mdl",
            "models/player/Group01/medieval_9.mdl",
     
        description = [[The Citizen is the most basic level of society you can hold besides being a serf. You have no specific role in the kingdom.]],
        weapons = {},
        command = "citizen",
        max = 0,
        salary = GAMEMODE.Config.normalsalary,
        admin = 0,
        vote = false,
        hasLicense = false,
        candemote = false,
        category = "Citizens",
    })
    TEAM_POLICE = DarkRP.createJob("Knight", ({
        color = Color(25, 25, 170, 255),
        model = {"models/player/blt6t", "models/player/briginite.mdl"},
        description = [[The protector of every citizen that lives in the city.
            You have the power to slay criminals and protect innocents.
            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 = {"", "weapon_mor_iron_longsword", "medieval_crossbow", "door_ram",},
        command = "knight",
        max = 4,
        salary = GAMEMODE.Config.normalsalary * 1.45,
        admin = 0,
        vote = true,
        hasLicense = true,
        ammo = ["pistol"] = 60,
        category = "Civil Protection",
    })

    TEAM_GANG = DarkRP.createJob("Thief", ({
        color = Color(75, 75, 75, 255),
        model = {
            "models/player/Group03/Steampunk-Plague-Doctor",
           
        description = [[The lowest person of crime.
            A gangster generally works for the Thief lord who runs the crime around here.
            The Thief lord sets your agenda and you follow it or you might be punished.]],
        weapons =
        command = "Thief",
        max = 3,
        salary = GAMEMODE.Config.normalsalary,
        admin = 0,
        vote = false,
        hasLicense = false,
        category = "Gangsters",
    })

    TEAM_MOB = DarkRP.createJob("Thief Lord", ({
        color = Color(25, 25, 25, 255),
        model = "models/player/Edward Kenway.mdl",
        description = [[The Thief Lord is the boss of the criminals in this kingdom.      
        With his power he coordinates the thieves and forms an efficient crime organization.      
        He has the ability to break into houses by using a lockpick..]],
        weapons = {"lockpick", "weapon_mor_steel_saber"},
        command = "Thief Lord",
        max = 1,
        salary = GAMEMODE.Config.normalsalary * 1.34,
        admin = 0,
        vote = false,
        hasLicense = false,
        category = "Gangsters",
    })

    TEAM_GUN = DarkRP.createJob("Blacksmith", {
        color = Color(255, 140, 0, 255),
        model = "models/player/dovakiin.mdl",
        description = [[A Blacksmith "makes" the weapons used by many citizens, thieves and noble Knights. Be careful the local authorities don't catch you selling to the wrong people]],
        weapons = {"weapon_mor_dwemer_hammer"},
        command = "Blacksmith",
        max = 2,
        salary = GAMEMODE.Config.normalsalary,
        admin = 0,
        vote = true,
        hasLicense = false,
        category = "Citizens",}
    })

    TEAM_MEDIC = DarkRP.createJob("Physician", ({
        color = Color(47, 79, 79, 255),
        model = "models/player/Hans: The Plague Dokter",
        description = [[With your medical knowledge you work to restore players to full health.
            Without a medic, people cannot be healed.
            Left click with the Medical Kit to heal other players.
            Right click with the Medical Kit to heal yourself.]],
        weapons = {"med_kit"},
        command = "Physician",
        max = 3,
        salary = GAMEMODE.Config.normalsalary,
        admin = 0,
        vote = false,
        hasLicense = false,
        medic = true,
        category = "Citizens",
    })

    TEAM_CHIEF = DarkRP.createJob("Knight Commander", ({
        color = Color(20, 20, 255, 255),
        model = "models/player/bl91t.mdl",
        description = [[The Knight Commander is the leader of the King's men.
            Coordinate the King's force to enforce law in the city.
            The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
            Type /wanted <name> to alert the public to the presence of a criminal.]]
        weapons = {"weapon_mor_ebony_longsword", "medieval_crossbow", "weapon_mor_ebony_shortsword", "", "door_ram", "weaponchecker"},
        command = "Knight Commander",
        max = 1,
        salary = GAMEMODE.Config.normalsalary * 1.67,
        admin = 0,
        vote = false,
        hasLicense = true,
        chief = true,
        NeedToChangeFrom = TEAM_POLICE,
        ammo = {
            ["pistol"] = 60,
        },
        category = "Civil Protection",
    })

    TEAM_MAYOR = DarkRP.createJob("King", ({
        color = Color(150, 20, 20, 255),
        model = "models/player/breen.mdl",
        description = [[The King creates laws to govern the kingdom.
        If you are the mayor you may create and accept warrants.
        Type /wanted <name>  to warrant a player.
        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 = {"weapon_mor_dwemer_halberd" "weapon_mor_dwemer_shortsword"},
        command = "King",
        max = 1,
        salary = GAMEMODE.Config.normalsalary * 1.89,
        admin = 0,
        vote = true,
        hasLicense = false,
        mayor = true,
        category = "Civil Protection",
    })

    TEAM_HOBO = DarkRP.createJob("Serf", ({
        color = Color(80, 45, 0, 255),
        model = "models/player/bl92t.mdl",
        description = [[The lowest member of society. Everybody laughs at you.
            You have no home.
            Beg for your food and money
            Sing for everyone who passes to get money
            Make your own wooden home somewhere in a corner or outside someone else's door]],
        weapons = {""},
        command = "Serf",
        max = 5,
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = false,
        candemote = false,
        hobo = true,
        category = "Citizens",
        })
       
    --[[---------------------------------------------------------------------------
    Define which team joining players spawn into and what team you change to if demoted
    ---------------------------------------------------------------------------]]
    GAMEMODE.DefaultTeam = TEAM_CITIZEN
    --[[---------------------------------------------------------------------------
    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_CHIEF] = true,
        [TEAM_MAYOR] = true,
    }
    --[[---------------------------------------------------------------------------
    Jobs that are hitmen (enables the hitman menu)
    ---------------------------------------------------------------------------]]
    DarkRP.addHitmanTeam(TEAM_MOB)
     
  2. Trackster

    Trackster Member

    it would be helpfull if you tell us whats the problem...youre saying you need help replacing them. i dont know still what problem youre having. whats not working?
     

Share This Page