Jump to content

Recommended Posts

Posted (edited)
datas = JSON.parse(datas);
Ped.setComponentVariation(CLOTH_HAIR, datas.Type, 0, 0);
Ped.setHairColor(datas.Color1, datas.Color2);
localPlayer.setHairColor(datas.Color1, datas.Color2);
Appearance = {
    ...Appearance,
    Hair: {
        Type: datas.Type,
        Color1: datas.Color1,
        Color2: datas.Color2,
    },
};

setHairColor works in localPlayer but the hair color does not change in Ped created in clientside. Ped's hair color is always green. How can I change the hair color of the peds in clientside?


https://media.discordapp.net/attachments/244521024253722625/1313249791593025636/image.png?ex=67501b6d&is=674ec9ed&hm=bbe7cc656395d63fdaec592ef09d01a620cd82542b7cf324d7da21c259ee8c3e&=&format=webp&quality=lossless&width=627&height=904

Edited by Hyperizon
Posted (edited)
mp.game.ped.setHairColor(Ped.handle, datas.Color1, datas.Color2);

Its worked

Ped.setHairColor(datas.Color1, datas.Color2);

Its not worked

 

Edited by Hyperizon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...