Advertisement
Guest User

ez

a guest
Feb 28th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. local function ClonePedlol(target)
  2. local ped = GetPlayerPed(target)
  3. local me = PlayerPedId()
  4.  
  5. hat = GetPedPropIndex(ped, 0)
  6. hat_texture = GetPedPropTextureIndex(ped, 0)
  7.  
  8. glasses = GetPedPropIndex(ped, 1)
  9. glasses_texture = GetPedPropTextureIndex(ped, 1)
  10.  
  11. ear = GetPedPropIndex(ped, 2)
  12. ear_texture = GetPedPropTextureIndex(ped, 2)
  13.  
  14. watch = GetPedPropIndex(ped, 6)
  15. watch_texture = GetPedPropTextureIndex(ped, 6)
  16.  
  17. wrist = GetPedPropIndex(ped, 7)
  18. wrist_texture = GetPedPropTextureIndex(ped, 7)
  19.  
  20. head_drawable = GetPedDrawableVariation(ped, 0)
  21. head_palette = GetPedPaletteVariation(ped, 0)
  22. head_texture = GetPedTextureVariation(ped, 0)
  23.  
  24. beard_drawable = GetPedDrawableVariation(ped, 1)
  25. beard_palette = GetPedPaletteVariation(ped, 1)
  26. beard_texture = GetPedTextureVariation(ped, 1)
  27.  
  28. hair_drawable = GetPedDrawableVariation(ped, 2)
  29. hair_palette = GetPedPaletteVariation(ped, 2)
  30. hair_texture = GetPedTextureVariation(ped, 2)
  31.  
  32. torso_drawable = GetPedDrawableVariation(ped, 3)
  33. torso_palette = GetPedPaletteVariation(ped, 3)
  34. torso_texture = GetPedTextureVariation(ped, 3)
  35.  
  36. legs_drawable = GetPedDrawableVariation(ped, 4)
  37. legs_palette = GetPedPaletteVariation(ped, 4)
  38. legs_texture = GetPedTextureVariation(ped, 4)
  39.  
  40. hands_drawable = GetPedDrawableVariation(ped, 5)
  41. hands_palette = GetPedPaletteVariation(ped, 5)
  42. hands_texture = GetPedTextureVariation(ped, 5)
  43.  
  44. foot_drawable = GetPedDrawableVariation(ped, 6)
  45. foot_palette = GetPedPaletteVariation(ped, 6)
  46. foot_texture = GetPedTextureVariation(ped, 6)
  47.  
  48. acc1_drawable = GetPedDrawableVariation(ped, 7)
  49. acc1_palette = GetPedPaletteVariation(ped, 7)
  50. acc1_texture = GetPedTextureVariation(ped, 7)
  51.  
  52. acc2_drawable = GetPedDrawableVariation(ped, 8)
  53. acc2_palette = GetPedPaletteVariation(ped, 8)
  54. acc2_texture = GetPedTextureVariation(ped, 8)
  55.  
  56. acc3_drawable = GetPedDrawableVariation(ped, 9)
  57. acc3_palette = GetPedPaletteVariation(ped, 9)
  58. acc3_texture = GetPedTextureVariation(ped, 9)
  59.  
  60. mask_drawable = GetPedDrawableVariation(ped, 10)
  61. mask_palette = GetPedPaletteVariation(ped, 10)
  62. mask_texture = GetPedTextureVariation(ped, 10)
  63.  
  64. aux_drawable = GetPedDrawableVariation(ped, 11)
  65. aux_palette = GetPedPaletteVariation(ped, 11)
  66. aux_texture = GetPedTextureVariation(ped, 11)
  67.  
  68. SetPedPropIndex(me, 0, hat, hat_texture, 1)
  69. SetPedPropIndex(me, 1, glasses, glasses_texture, 1)
  70. SetPedPropIndex(me, 2, ear, ear_texture, 1)
  71. SetPedPropIndex(me, 6, watch, watch_texture, 1)
  72. SetPedPropIndex(me, 7, wrist, wrist_texture, 1)
  73.  
  74. SetPedComponentVariation(me, 0, head_drawable, head_texture, head_palette)
  75. SetPedComponentVariation(me, 1, beard_drawable, beard_texture, beard_palette)
  76. SetPedComponentVariation(me, 2, hair_drawable, hair_texture, hair_palette)
  77. SetPedComponentVariation(me, 3, torso_drawable, torso_texture, torso_palette)
  78. SetPedComponentVariation(me, 4, legs_drawable, legs_texture, legs_palette)
  79. SetPedComponentVariation(me, 5, hands_drawable, hands_texture, hands_palette)
  80. SetPedComponentVariation(me, 6, foot_drawable, foot_texture, foot_palette)
  81. SetPedComponentVariation(me, 7, acc1_drawable, acc1_texture, acc1_palette)
  82. SetPedComponentVariation(me, 8, acc2_drawable, acc2_texture, acc2_palette)
  83. SetPedComponentVariation(me, 9, acc3_drawable, acc3_texture, acc3_palette)
  84. SetPedComponentVariation(me, 10, mask_drawable, mask_texture, mask_palette)
  85. SetPedComponentVariation(me, 11, aux_drawable, aux_texture, aux_palette)
  86. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement