Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
600
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. player.SetSkin((CustomPlayerData[player.Handle].Gender == 0) ? PedHash.FreemodeMale01 : PedHash.FreemodeFemale01);
  2. player.SetDefaultClothes();
  3. player.SetClothes(2, CustomPlayerData[player.Handle].Hair.Hair, 0);
  4. NAPI.Player.SetPlayerHairColor(player, (byte)CustomPlayerData[player.Handle].Hair.Color, (byte)CustomPlayerData[player.Handle].Hair.HighlightColor);
  5. NAPI.Player.SetPlayerEyeColor(player, (byte)CustomPlayerData[player.Handle].EyeColor);
  6.  
  7.  
  8. HeadBlend heahblend = new HeadBlend();
  9. heahblend.ShapeFirst = (byte)CustomPlayerData[player.Handle].Parents.Mother;
  10. heahblend.ShapeSecond = (byte)CustomPlayerData[player.Handle].Parents.Father;
  11. heahblend.ShapeThird = 0;
  12. heahblend.SkinFirst = (byte)CustomPlayerData[player.Handle].Parents.Mother;
  13. heahblend.SkinSecond = (byte)CustomPlayerData[player.Handle].Parents.Father;
  14. heahblend.SkinThird = 0;
  15. heahblend.ShapeMix = CustomPlayerData[player.Handle].Parents.Similarity;
  16. heahblend.SkinMix = CustomPlayerData[player.Handle].Parents.SkinSimilarity;
  17. heahblend.ThirdMix = 0;
  18. NAPI.Player.SetPlayerHeadBlend(player, heahblend);
  19.  
  20. for (int i = 0; i < CustomPlayerData[player.Handle].Features.Length; i++) NAPI.Player.SetPlayerFaceFeature(player, i, CustomPlayerData[player.Handle].Features[i]);
  21. for (int i = 0; i < CustomPlayerData[player.Handle].Appearance.Length; i++)
  22. {
  23. HeadOverlay headoverlay2 = new HeadOverlay();
  24. headoverlay2.Index = (byte)CustomPlayerData[player.Handle].Appearance[i].Value;
  25. headoverlay2.Opacity = CustomPlayerData[player.Handle].Appearance[i].Opacity;
  26. NAPI.Player.SetPlayerHeadOverlay(player, i, headoverlay2);
  27. }
  28.  
  29. HeadOverlay headoverlay = new HeadOverlay();
  30. headoverlay.Index = 1;
  31. headoverlay.Opacity = 1;
  32. headoverlay.Color = (byte)CustomPlayerData[player.Handle].BeardColor;
  33. headoverlay.SecondaryColor = 0;
  34. player.SetHeadOverlay(1, headoverlay);
  35.  
  36. headoverlay = new HeadOverlay();
  37. headoverlay.Index = 2;
  38. headoverlay.Opacity = 1;
  39. headoverlay.Color = (byte)CustomPlayerData[player.Handle].EyebrowColor;
  40. headoverlay.SecondaryColor = 0;
  41. player.SetHeadOverlay(2, headoverlay);
  42.  
  43. headoverlay = new HeadOverlay();
  44. headoverlay.Index = 5;
  45. headoverlay.Opacity = 2;
  46. headoverlay.Color = (byte)CustomPlayerData[player.Handle].BlushColor;
  47. headoverlay.SecondaryColor = 0;
  48. player.SetHeadOverlay(2, headoverlay);
  49.  
  50. headoverlay = new HeadOverlay();
  51. headoverlay.Index = 8;
  52. headoverlay.Opacity = 2;
  53. headoverlay.Color = (byte)CustomPlayerData[player.Handle].LipstickColor;
  54. headoverlay.SecondaryColor = 0;
  55. player.SetHeadOverlay(2, headoverlay);
  56.  
  57. headoverlay = new HeadOverlay();
  58. headoverlay.Index = 10;
  59. headoverlay.Opacity = 1;
  60. headoverlay.Color = (byte)CustomPlayerData[player.Handle].ChestHairColor;
  61. headoverlay.SecondaryColor = 0;
  62. player.SetHeadOverlay(2, headoverlay);
Advertisement
RAW Paste Data Copied
Advertisement