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.

v 2.5.x Adding custom Jobs to your setup on DarkRP 2.5

Discussion in 'Tutorials' started by German Hoeffner, Oct 5, 2013.

  1. German Hoeffner

    German Hoeffner Community Staff Staff Member Server Owner

    Here is the next tutorial in my series "DarkRP 2.5. Tutorials". This time you'll learn how to add a custom job. Thanks to Falco for taking a look if everything is correct!

    Pre-requesites:
    • Shared Hosting (for example Gmod.EU)
    • FTP Access
    • Common sense/Brain

    In this episode the following topics are covered:
    • Finding information about custom jobs
    • Easy method to find the right color code
    • Which files to edit (with DarkRP 2.5 and upwards)
    • What each of the option means/does

    I'd highly appreciate feedback on the tutorial as well as your subscription!
    DarkRP 2.5 Tutorial: Adding custom jobs to your setup - #3

    Here is the code used in the video:
    Code (Lua):
    TEAM_SECURITY = AddExtraTeam("Security", {
    color = Color(190, 223, 0, 255),
    model = "models/player/swat.mdl",
    description = [[You're responsible for the safety
    of a citizen who pays you money for
    protecting him.]]
    ,
    weapons = {"weapon_glock2"},
    command = "security",
    max = 5,
    salary = 40,
    admin = 0,
    vote = false,
    hasLicense = true,
    })
     
    Last edited: Oct 5, 2013
  2. Maybe you should use the new method instead?


    TEAM_SECURITY = DarkRP.createJob("Security",{
    color = Color(190,223,0,255),
    model ="models/player/swat.mdl",
    description =[[You're responsible for the safety
    of a citizen who pays you money for
    protecting him.]],
    weapons ={"weapon_glock2"},
    command ="security",
    max=5,
    salary =40,
    admin =0,
    vote =false,
    hasLicense =true,
    })
     
  3. Scottie

    Scottie ~ Ent:King Dev ~ Contributor

    And you don't at all need Shared Hosting or an FTP.
     
  4. TAURP

    TAURP New Member

    What determines the order the jobs go in on the f4 menu? The old DarkRP Mod was set out the way it was in the jobs.lua file but now it is different :(
     
  5. Ric

    Ric Member

    This is outdated....
     
  6. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    Looks fine to me.
     
  7. Pab14567

    Pab14567 Well-Known Member

    Depending on the categories, you set them in. :b
     
  8. Juvia

    Juvia New Member

    I know this maybe a dumb question, but where do I put this?
     
  9. Feldma

    Feldma Member

    Put the code here:

    Addons
    -> darkrpmodification -> lua -> darkrp_customthings -> jobs.lua
     
  10. Banana man

    Banana man New Member

    i cant find darkrpmodificatio in my addons on folder there's just all my addons no folders in there what should i do ?
     
  11. Feldma

    Feldma Member

    Download this:
    https://github.com/FPtje/darkrpmodification
    Extract it, put it in the addons folder, then listen to my above instruction:
     
  12. Banana man

    Banana man New Member

    Thx for the help I figured it out I going to post my codes soon and how do I set custom hp
     
    Last edited: Feb 17, 2016
  13. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    Alright, Banana man, I'm going to ask you to ask for help elsewhere on the forum. I'm getting tired of approving these things.
    We have a subforum for this. No more asking help here.
     
    Pab14567 likes this.

Share This Page