Advertisement
MiaMyLove

SunShineSilver.mdA

Apr 14th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.59 KB | None | 0 0
  1. int GET_ENTITY_TYPE(Entity entity);
  2. Returns:
  3. 0 = no entity
  4. 1 = ped
  5. 2 = vehicle
  6. 3 = object
  7.  
  8. _GET_NUM_PROPS_FROM_OUTFIT #
  9.  
  10. // 0x9BDF59818B1E38C1 0x594E862C
  11. // GetNumPropsFromOutfit
  12. int _GET_NUM_PROPS_FROM_OUTFIT(int character, int p1, int p2, BOOL p3, int p4, int componentId);
  13.  
  14. character is 0 for Michael, 1 for Franklin, 2 for Trevor, 3 for freemode male, and 4 for freemode female.
  15.  
  16. componentId is between 0 and 11 and corresponds to the usual component slots.
  17.  
  18. p1 could be the outfit number; unsure.
  19.  
  20. p2 is usually -1; unknown function.
  21.  
  22. p3 appears to be a boolean flag; unknown function.
  23.  
  24. p4 is usually -1; unknown function.
  25.  
  26.  
  27. 0xF3FBE2D50A6A8C28 0x1ECD23E7
  28. int 0xF3FBE2D50A6A8C28(int character, BOOL p1);
  29.  
  30. characters
  31.  
  32. 0: Michael
  33. 1: Franklin
  34. 2: Trevor
  35. 3: MPMale
  36. 4: MPFemale
  37.  
  38.  
  39. SET_PED_HEAD_OVERLAY #
  40.  
  41. // 0x48F44967FA05CC1E 0xD28DBA90
  42. // SetPedHeadOverlay
  43. void SET_PED_HEAD_OVERLAY(Ped ped, int overlayID, int index, float opacity);
  44.  
  45. OverlayID ranges from 0 to 12, index from 0 to _GET_NUM_OVERLAY_VALUES(overlayID)-1, and opacity from 0.0 to 1.0.
  46.  
  47. overlayID       Part                  Index, to disable
  48. 0               Blemishes             0 - 23, 255
  49. 1               Facial Hair           0 - 28, 255
  50. 2               Eyebrows              0 - 33, 255
  51. 3               Ageing                0 - 14, 255
  52. 4               Makeup                0 - 74, 255
  53. 5               Blush                 0 - 6, 255
  54. 6               Complexion            0 - 11, 255
  55. 7               Sun Damage            0 - 10, 255
  56. 8               Lipstick              0 - 9, 255
  57. 9               Moles/Freckles        0 - 17, 255
  58. 10              Chest Hair            0 - 16, 255
  59. 11              Body Blemishes        0 - 11, 255
  60. 12              Add Body Blemishes    0 - 1, 255
  61.  
  62. SET_PED_DECORATION #
  63.  
  64. // 0x5F5D1665E352A839 0x70559AC7
  65. // SetPedDecoration
  66. void _SET_PED_DECORATION(Ped ped, Hash collection, Hash overlay);
  67.  
  68. Applies an Item from a PedDecorationCollection to a ped. These include tattoos and shirt decals.
  69.  
  70. collection - PedDecorationCollection filename hash
  71. overlay - Item name hash
  72.  
  73. Example:
  74. Entry inside "mpbeach_overlays.xml" -
  75. <Item>
  76. <uvPos x="0.500000" y="0.500000" />
  77. <scale x="0.600000" y="0.500000" />
  78. <rotation value="0.000000" />
  79. <nameHash>FM_Hair_Fuzz</nameHash>
  80. <txdHash>mp_hair_fuzz</txdHash>
  81. <txtHash>mp_hair_fuzz</txtHash>
  82. <zone>ZONE_HEAD</zone>
  83. <type>TYPE_TATTOO</type>
  84. <faction>FM</faction>
  85. <garment>All</garment>
  86. <gender>GENDER_DONTCARE</gender>
  87. <award />
  88. <awardLevel />
  89. </Item>
  90.  
  91. Code:
  92. PED::_0x5F5D1665E352A839(PLAYER::PLAYER_PED_ID(), GAMEPLAY::GET_HASH_KEY("mpbeach_overlays"), GAMEPLAY::GET_HASH_KEY("fm_hair_fuzz"))
  93.  
  94. PED::_SET_PED_FACE_FEATURE
  95. Hashes: 0x71A5C1DBA060049E
  96.  
  97. void _SET_PED_FACE_FEATURE(Ped ped, int index, float scale)
  98. // 0x71A5C1DBA060049E
  99.  
  100. Sets the various freemode face features, e.g. nose length, chin shape. Scale ranges from -1.0 to 1.0.
  101.  
  102. Index can be 0 - 19
  103.  
  104. Edit:---->Thanks to the first user.
  105.  
  106. Enum Face_Feature
  107. Nose_Width
  108. Nose_Peak_Hight
  109. Nose_Peak_Lenght
  110. Nose_Bone_High
  111. Nose_Peak_Lowering
  112. Nose_Bone_Twist
  113. EyeBrown_High
  114. EyeBrown_Forward
  115. Cheeks_Bone_High
  116. Cheeks_Bone_Width
  117. Cheeks_Width
  118. Eyes_Openning
  119. Lips_Thickness
  120. Jaw_Bone_Width 'Bone size to sides
  121. Jaw_Bone_Back_Lenght 'Bone size to back
  122. Chimp_Bone_Lowering 'Go Down
  123. Chimp_Bone_Lenght 'Go forward
  124. Chimp_Bone_Width
  125. Chimp_Hole
  126. Neck_Thikness
  127. End Enum
  128.  
  129. Example in VB.Net
  130.  
  131. Public Shared Sub SET_PED_FACE_FEATURE(FreemodePed As Ped, Index As Face_Feature, Scale As Single)
  132.  
  133. Native.Function.Call(Native.Hash._SET_PED_FACE_FEATURE, FreemodePed, Index, Scale)
  134. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement