SetPedHeadBlendData
DocsSetPedHeadBlendData(ped, shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix, isParent)Description
For more info please refer to this topic.
Other information:
IDs start at zero and go Male Non-DLC, Female Non-DLC, Male DLC, and Female DLC.
This native function is often called prior to calling natives such as:
<code>SetPedHairColor</code>
<code>SetPedHeadOverlayColor</code>
<code>SetPedHeadOverlay</code>
<code>SetPedFaceFeature</code>
Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | The ped entity |
shapeFirstID | int | Controls the shape of the first ped's face |
shapeSecondID | int | Controls the shape of the second ped's face |
shapeThirdID | int | Controls the shape of the third ped's face |
skinFirstID | int | Controls the first id's skin tone |
skinSecondID | int | Controls the second id's skin tone |
skinThirdID | int | Controls the third id's skin tone |
shapeMix | float | 0.0 - 1.0 Of whose characteristics to take Mother -> Father (shapeFirstID and shapeSecondID) |
skinMix | float | 0.0 - 1.0 Of whose characteristics to take Mother -> Father (skinFirstID and skinSecondID) |
thirdMix | float | Overrides the others in favor of the third IDs. |
isParent | BOOL | IsParent is set for "children" of the player character's grandparents during old-gen character creation. It has unknown effect otherwise. |
Quick Snippet: Get Ped Handleped
pedUse this to get the player ped handle for this native.
-- Get the player's ped handle (client-side)
local ped = PlayerPedId()
print("Ped handle: " .. ped)
-- For a specific player's ped (server-side):
-- local targetPed = GetPlayerPed(source)Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.
Examples
Official
-- Unfortunately, there's no clear way of getting the head blend data in lua out of the box, but there are wrappers:
-- https://forum.cfx.re/t/small-c-export-event-wrapper-for-getpedheadblenddata/214611
SetPedHeadBlendData(PlayerPedId(), 0, 0, 0, 0, 0, 0, 0, 0, 0, false)