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.

How to Add Armour to a Job

Discussion in 'DarkRP Modding Questions & Help' started by Heisenberg, Mar 8, 2015.

  1. Heisenberg

    Heisenberg Member

    I've tried one method but it doesn't work. Is there a tried and true bit of code I can put in a job so that it spawns with a determinable amount of armour?
     
  2. Matryan

    Matryan Well-Known Member

    What was the method you tried?
     
  3. Heisenberg

    Heisenberg Member

    Stupidly, I deleted it ages ago. So I have no idea.
     
  4. Matryan

    Matryan Well-Known Member

    In the job fields of what ever job you want to have armor, add this:
    Code (Text):
    PlayerSpawn = function(ply)

        ply:SetArmor(200)

    end,
    Set 200 to however much armor you want.
     
  5. Heisenberg

    Heisenberg Member

    Where do I put that? How do I fit that code into the job fields. I'm having some issues with that.
     
  6. Matryan

    Matryan Well-Known Member

    Just like the max=, cmd=, color= fields, put it under what ever job.
     
  7. Heisenberg

    Heisenberg Member

    We've got a number of other fields which complicate things such as PlayerDeath and CustomCheck, both of which have 'end's on them.
     
  8. Matryan

    Matryan Well-Known Member

    So put it below them...?
    Make sure there's a comma after the ends.
     
  9. Heisenberg

    Heisenberg Member

    Alright, thanks
     

Share This Page