Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player.SetSkin((CustomPlayerData[player.Handle].Gender == 0) ? PedHash.FreemodeMale01 : PedHash.FreemodeFemale01);
- player.SetDefaultClothes();
- player.SetClothes(2, CustomPlayerData[player.Handle].Hair.Hair, 0);
- NAPI.Player.SetPlayerHairColor(player, (byte)CustomPlayerData[player.Handle].Hair.Color, (byte)CustomPlayerData[player.Handle].Hair.HighlightColor);
- NAPI.Player.SetPlayerEyeColor(player, (byte)CustomPlayerData[player.Handle].EyeColor);
- HeadBlend heahblend = new HeadBlend();
- heahblend.ShapeFirst = (byte)CustomPlayerData[player.Handle].Parents.Mother;
- heahblend.ShapeSecond = (byte)CustomPlayerData[player.Handle].Parents.Father;
- heahblend.ShapeThird = 0;
- heahblend.SkinFirst = (byte)CustomPlayerData[player.Handle].Parents.Mother;
- heahblend.SkinSecond = (byte)CustomPlayerData[player.Handle].Parents.Father;
- heahblend.SkinThird = 0;
- heahblend.ShapeMix = CustomPlayerData[player.Handle].Parents.Similarity;
- heahblend.SkinMix = CustomPlayerData[player.Handle].Parents.SkinSimilarity;
- heahblend.ThirdMix = 0;
- NAPI.Player.SetPlayerHeadBlend(player, heahblend);
- for (int i = 0; i < CustomPlayerData[player.Handle].Features.Length; i++) NAPI.Player.SetPlayerFaceFeature(player, i, CustomPlayerData[player.Handle].Features[i]);
- for (int i = 0; i < CustomPlayerData[player.Handle].Appearance.Length; i++)
- {
- HeadOverlay headoverlay2 = new HeadOverlay();
- headoverlay2.Index = (byte)CustomPlayerData[player.Handle].Appearance[i].Value;
- headoverlay2.Opacity = CustomPlayerData[player.Handle].Appearance[i].Opacity;
- NAPI.Player.SetPlayerHeadOverlay(player, i, headoverlay2);
- }
- HeadOverlay headoverlay = new HeadOverlay();
- headoverlay.Index = 1;
- headoverlay.Opacity = 1;
- headoverlay.Color = (byte)CustomPlayerData[player.Handle].BeardColor;
- headoverlay.SecondaryColor = 0;
- player.SetHeadOverlay(1, headoverlay);
- headoverlay = new HeadOverlay();
- headoverlay.Index = 2;
- headoverlay.Opacity = 1;
- headoverlay.Color = (byte)CustomPlayerData[player.Handle].EyebrowColor;
- headoverlay.SecondaryColor = 0;
- player.SetHeadOverlay(2, headoverlay);
- headoverlay = new HeadOverlay();
- headoverlay.Index = 5;
- headoverlay.Opacity = 2;
- headoverlay.Color = (byte)CustomPlayerData[player.Handle].BlushColor;
- headoverlay.SecondaryColor = 0;
- player.SetHeadOverlay(2, headoverlay);
- headoverlay = new HeadOverlay();
- headoverlay.Index = 8;
- headoverlay.Opacity = 2;
- headoverlay.Color = (byte)CustomPlayerData[player.Handle].LipstickColor;
- headoverlay.SecondaryColor = 0;
- player.SetHeadOverlay(2, headoverlay);
- headoverlay = new HeadOverlay();
- headoverlay.Index = 10;
- headoverlay.Opacity = 1;
- headoverlay.Color = (byte)CustomPlayerData[player.Handle].ChestHairColor;
- headoverlay.SecondaryColor = 0;
- player.SetHeadOverlay(2, headoverlay);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement