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.

[URGENT] Playermodel Bodygroups for Jobs

Discussion in 'DarkRP Modding Questions & Help' started by [TF-O] MiK, Nov 6, 2016.

  1. [TF-O] MiK

    [TF-O] MiK New Member

    Hello Again guys.

    Since the last time I asked this, nobody answered it, I'm requesting for help again.

    : I Can't set the bodygroups of a Playermodel!

    I Want to set X Bodygroups to a playermodel of a Job.
    However, I Tried allot of stuff and it still doesn't work!

    This is driving me crazy, and the already existing tutorials don't work!

    Here's the code for one of the jobs as example.

    Code (Text):

    TEAM_RARMY = DarkRP.createJob("RA Soldier", {
        color = Color(150, 7, 7, 255),
        model = {"models/russianfed/rooskie1b.mdl"},
        description = [[You're a soldier of the Russian Army!]],
        weapons = {"keys", "fas2_ak47", "khr_makarov", "fas2_machete"},
        command = "rasoldier",
        max = 20, -- at most 70% of the players can have this job. Set to a whole," number to set an absolute limit.
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = false,
        modelScale = 1,
        PlayerSpawn = function(ply)
            ply:SetBodygroup(1, 4)
            ply:SetBodygroup(2, 0)
            ply:SetBodygroup(3, 1)
            ply:SetBodygroup(4, 1)
            ply:SetBodygroup(5, 1)
            ply:SetBodygroup(6, 3)
            ply:SetBodygroup(7, 0)
            ply:SetBodygroup(8, 1)
            ply:SetBodygroup(9, 0)
            ply:SetBodygroup(10, 2)
            ply:SetBodygroup(11, 0)

            return CLIENT

Share This Page