PedClient

setPedHeadBlendData

SET_PED_HEAD_BLEND_DATA0x9414E18B9434C2FE

The GTA V native SET_PED_HEAD_BLEND_DATA of the PED namespace, as LS:MP client scripts call it: the global function setPedHeadBlendData, in JavaScript and in Lua.

SignatureJavaScript
setPedHeadBlendData(
  ped: Ped,
  shapeFirstID: number,
  shapeSecondID: number,
  shapeThirdID: number,
  skinFirstID: number,
  skinSecondID: number,
  skinThirdID: number,
  shapeMix: number,
  skinMix: number,
  thirdMix: number,
  isParent: boolean
): void
SignatureLua
setPedHeadBlendData(
  ped: Ped,
  shapeFirstID: integer,
  shapeSecondID: integer,
  shapeThirdID: integer,
  skinFirstID: integer,
  skinSecondID: integer,
  skinThirdID: integer,
  shapeMix: number,
  skinMix: number,
  thirdMix: number,
  isParent: boolean
)

Usage

JavaScript
setPedHeadBlendData(
  ped, shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID,
  shapeMix, skinMix, thirdMix, isParent
);
Lua
setPedHeadBlendData(
    ped, shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID,
    shapeMix, skinMix, thirdMix, isParent
)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
shapeFirstIDintnumberinteger
shapeSecondIDintnumberinteger
shapeThirdIDintnumberinteger
skinFirstIDintnumberinteger
skinSecondIDintnumberinteger
skinThirdIDintnumberinteger
shapeMixfloatnumbernumber
skinMixfloatnumbernumber
thirdMixfloatnumbernumber
isParentBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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.

headBlendData headData;
getPedHeadBlendData(playerPedId(), &headData);

setPedHeadBlendData(playerPedId(), headData.shapeFirst, headData.shapeSecond, headData.shapeThird, headData.skinFirst, headData.skinSecond
   , headData.skinThird, headData.shapeMix, headData.skinMix, headData.skinThird, 0);

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

Reference

Namespace
Ped PED
In the game
void SET_PED_HEAD_BLEND_DATA(Ped ped, int shapeFirstID, int shapeSecondID, int shapeThirdID, int skinFirstID, int skinSecondID, int skinThirdID, float shapeMix, float skinMix, float thirdMix, BOOL isParent)
Hash
0x9414E18B9434C2FE

Open in the interactive natives reference