actuallykane

Untitled

Sep 25th, 2020
895
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SetPedDefaultComponentVariation(PlayerPedId());
  2.                 ClearPedDecorations(PlayerPedId());
  3.                 ClearPedFacialDecorations(PlayerPedId());
  4.  
  5.                 for (var i = 0; i < 15; i++)
  6.                 {
  7.                     ClearPedProp(PlayerPedId(), i);
  8.                 }
  9.  
  10.                 var hair = skin.components.hair;
  11.                 SetPedHairColor(PlayerPedId(), hair[0], hair[1]);
  12.  
  13.                 var head = skin.components.head;
  14.                 SetPedHeadBlendData(PlayerPedId(), 21 + head[0], head[1], 0, 21 + head[0], head[1], 0, 1 - head[2] / 16, 1 - head[3] / 16, 0.0f, true);
  15.  
  16.                 var overlay = skin.components.overlay;
  17.                 foreach (DetailedComponent detailedComponent in overlay)
  18.                 {
  19.                     SetPedHeadOverlay(PlayerPedId(), (int)detailedComponent.values[0], (int)detailedComponent.values[1], detailedComponent.values[5]);
  20.                     SetPedHeadOverlayColor(PlayerPedId(), (int)detailedComponent.values[0], (int)detailedComponent.values[2], (int)detailedComponent.values[3], (int)detailedComponent.values[4]);
  21.                 }
  22.  
  23.                 var clothes = skin.components.clothes;
  24.                 foreach (DetailedComponent detailedComponent in clothes)
  25.                 {
  26.                     SetPedComponentVariation(PlayerPedId(), (int) detailedComponent.values[0], (int) detailedComponent.values[1], (int) detailedComponent.values[2], 0);
  27.                 }
RAW Paste Data