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.

Set & Lock Bodygroups on spawn

Discussion in 'DarkRP Modding Questions & Help' started by Nocturnal, Sep 2, 2019.

Tags:
  1. Nocturnal

    Nocturnal New Member

    So i've seen other posts about doing this however none of them seem to work correctly anymore.

    What I'm trying to achieve is that whenever a player switches to a job, the player model(s) they have access to all have pre-set and locked body groups so they cant be changed. All of the player models have the exact same body groups.

    Here's the code I'm using.


    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    ply:SetArmor(0)
    ply:SetBodygroup(0, 9)
    ply:SetBodygroup(1, 2)
    ply:SetBodygroup(2, 3)
    ply:SetBodygroup(3, 0)
    end

    0 = Skin
     

Share This Page