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 How to make Custom DarkRP Jobs

Discussion in 'Tutorials' started by Ric, Sep 28, 2015.

  1. Ric

    Ric Member

    In this tutorial I am going to teach you how to make a functioning and working DarkRP Custom Job.
    What you need is
    DarkRP Installed
    Playermodels (If not just use the HL2 playermodels)
    DarkRP Modification
    Notepad++/Sublime2/3

    (Server Directory) > garrysmod > addons > darkrpmodification > lua > darkrp_customthing > jobs.lua

    Go into your Server Folder and select garrysmod open it and dive into addons, look for darkrpmodification-master and open it up, open lua, open darkrp_customthings then open up jobs.lua

    Once you have opened it you will see a box of text

    Please write under neath the line that says
    Add jobs under the following line:

    Here is a template you can use and paste into your jobs.lua file underneath each job
    Don't forget the commas at the end of the strings
    For the color you will need to go onto http://www.colorpicker.com/ - You need to locate the R G B colors and paste them in put a comma after each of them E.G 19,34,34,255 YOU ALWAYS NEED TO ADD 225 AT THE END
    TO GET THE PLAYERMODELS GO INTO YOUR GAME AND SELECT THE RAGDOLL PLAYERMODEL THEN RIGHT THE PLAYERMODEL, AFTER THE WORD MODEL OF THE MODEL PUT PLAYER IT SHOULD LOOK LIKE THIS model/player/what ever goes here.mdl

    Code (Text):
    --[[---------------------------------------------------------------------------
    TEAM_ = DarkRP.createJob("", {
       color = ,
       model = {""},
       description = [[]],
       weapons = {},
       command = "",
       max = ,
       salary = ,
       admin = 0,
       vote = true,
       hasLicense = true,
       candemote = true,
       category = "", -- You need to make a category first
    })

    -- Here is one that's complete

      TEAM_CAR = DarkRP.createJob("Psychologist", {
       color = Color(249, 255, 0, 255),
       model = {"models/player/magnusson.mdl","models/player/hostage/hostage_04.mdl","models/player/hostage/hostage_03.mdl"},
       description = [[You help thoose in mental needs]],
       weapons = {},
       command = "phsy",
       max = 2,
       salary = 40,
       admin = 0,
       vote = false,
       hasLicense = false,
       candemote = true,
    })


    ---------------------------------------------------------------------------]]
    Thank you for reading and I hope this helped you
     
  2. Raven

    Raven New Member

    Good tutorial. Surely look clear to me.
     
  3. Ric

    Ric Member

    Thanks for the feedback Raven!
     
  4. Pab14567

    Pab14567 Well-Known Member

    I posted one in the workshop page lol around August I think idk

    It should be the one with like 50+ comments made by

    ENVYUS kennyS -M-
     
  5. Guardz6

    Guardz6 New Member

    I added to my jobs.lua but it won't let me switch to the job. Nothing happens. I selected a model and tried but did not let me switch.
     
  6. Ric

    Ric Member

    Paste your jobs.lua in here and let me see whats wrong

    Edit: Make sure the playermodels are playermodels there are quite a bit of addons out there that don't support it
     
  7. (FPtje) Atheos

    (FPtje) Atheos Main Developer Staff Member

    No, don't. This thread is not about getting help for jobs. Make your own thread in the modding help section.
     

Share This Page