Player::setHeadBlendData: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 1: Line 1:
The 'shape' parameters control the shape of the ped's face. The 'skin' parameters control the skin tone. ShapeMix and skinMix control how much the first and second IDs contribute,(typically mother and father.) ThirdMix overrides the others in favor of the third IDs. IsParent is set for 'children' of the player character's grandparents during old-gen character creation. It has unknown effect otherwise.<br><br>The IDs start at zero and go Male Non-DLC, Female Non-DLC, Male DLC, and Female DLC.<br><br>!!!Can someone add working example for this???<br><br>try this:<br> headBlendData headData;<br> _GET_Player_HEAD_BLEND_DATA(PLAYER_Player_ID(), &amp;headData);<br><br> SET_Player_HEAD_BLEND_DATA(PLAYER_Player_ID(), headData.shapeFirst, headData.shapeSecond, headData.shapeThird, headData.skinFirst, headData.skinSecond<br> , headData.skinThird, headData.shapeMix, headData.skinMix, headData.skinThird, 0);<br><br><br><br>THEAETIK: For more info please refer to this topic. <br>gtaforums.com/topic/858970-all-gtao-face-ids-pedset-ped-head-blend-data-explained
The 'shape' parameters control the shape of the ped's face. The 'skin' parameters control the skin tone. ShapeMix and skinMix control how much the first and second IDs contribute,(typically mother and father.) ThirdMix overrides the others in favor of the third IDs. IsParent is set for 'children' of the player character's grandparents during old-gen character creation. It has unknown effect otherwise.<br><br>The IDs start at zero and go Male Non-DLC, Female Non-DLC, Male DLC, and Female DLC.<br><br>THEAETIK: For more info please refer to this topic. <br>gtaforums.com/topic/858970-all-gtao-face-ids-pedset-ped-head-blend-data-explained<br><br>'''''Vanetti:''''' <br><br>The first ids from 0 to 45 changing mother shape (shapeFirstID) or mother skin color (skinFirstID)<br><br>The second ids from 0 to 45 changing father shape (shapeSecondID) and father skin color (skinSecondID)<br><br>The third ids does not change anything, you can leave this with 0<br><br>You should leave thirdMix to the 0, in other way father's skin color will be white everytime<br><br>Seems like isParent do not change anything ( true or false )
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.setHeadBlendData(shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix, isParent);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.players.local.setHeadBlendData(shapeFirstID, shapeSecondID, 0, skinFirstID, skinSecondID, 0, shapeMix, skinMix, 0, isParent);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''shapeFirstID:''' int
*'''shapeFirstID:''' int
*'''shapeSecondID:''' int
*'''shapeSecondID:''' int
*'''shapeThirdID:''' int
*'''shapeThirdID:''' int ( better if keep this with 0 )
*'''skinFirstID:''' int
*'''skinFirstID:''' int
*'''skinSecondID:''' int
*'''skinSecondID:''' int
*'''skinThirdID:''' int
*'''skinThirdID:''' int ( better if keep this with 0 )
*'''shapeMix:''' float
*'''shapeMix:''' float
*'''skinMix:''' float
*'''skinMix:''' float
*'''thirdMix:''' float
*'''thirdMix:''' float ( better if keep this with 0 )
*'''isParent:''' Boolean
*'''isParent:''' Boolean ( this value do not changing anything )
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
Line 20: Line 20:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
[https://wiki.rage.mp/index.php?title=Player::setFaceFeature Player::setFaceFeature]
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 15:20, 28 November 2017

The 'shape' parameters control the shape of the ped's face. The 'skin' parameters control the skin tone. ShapeMix and skinMix control how much the first and second IDs contribute,(typically mother and father.) ThirdMix overrides the others in favor of the third IDs. IsParent is set for 'children' of the player character's grandparents during old-gen character creation. It has unknown effect otherwise.

The IDs start at zero and go Male Non-DLC, Female Non-DLC, Male DLC, and Female DLC.

THEAETIK: For more info please refer to this topic.
gtaforums.com/topic/858970-all-gtao-face-ids-pedset-ped-head-blend-data-explained

Vanetti:

The first ids from 0 to 45 changing mother shape (shapeFirstID) or mother skin color (skinFirstID)

The second ids from 0 to 45 changing father shape (shapeSecondID) and father skin color (skinSecondID)

The third ids does not change anything, you can leave this with 0

You should leave thirdMix to the 0, in other way father's skin color will be white everytime

Seems like isParent do not change anything ( true or false )

Syntax

mp.players.local.setHeadBlendData(shapeFirstID, shapeSecondID, 0, skinFirstID, skinSecondID, 0, shapeMix, skinMix, 0, isParent);

Required Arguments

  • shapeFirstID: int
  • shapeSecondID: int
  • shapeThirdID: int ( better if keep this with 0 )
  • skinFirstID: int
  • skinSecondID: int
  • skinThirdID: int ( better if keep this with 0 )
  • shapeMix: float
  • skinMix: float
  • thirdMix: float ( better if keep this with 0 )
  • isParent: Boolean ( this value do not changing anything )

Return value

  • Undefined

Example

// todo

See also

Player::setFaceFeature