PedClientChecked by LS:MP1 output

getPedHeadBlendData

GET_PED_HEAD_BLEND_DATA0x2746BD9D88C5C5D0

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

SignatureJavaScript
getPedHeadBlendData(ped: Ped): [ok: boolean, headBlendData: HeadBlend]
SignatureLua
getPedHeadBlendData(ped: Ped): boolean, table

Usage

JavaScript
const [ok, headBlendData] = getPedHeadBlendData(ped);
Lua
local ok, headBlendData = getPedHeadBlendData(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

2 values, in this order: an array in JavaScript, multiple return values in Lua.

#ValueTypeJavaScriptLuaDescription
1okBOOLbooleanbooleanThe native’s own return value.
2headBlendDataHeadBlendHeadBlendtableoutput

On LS:MP

ℹ
Head blend

Pass a valid ped handle. Read the head-blend record only when the leading success value is true.

ℹ
GTA V Enhanced 1158.16

This LS:MP adapter is available on Enhanced 1158.16. Calls on another build raise an error.

Reference

Namespace
Ped PED
In the game
BOOL GET_PED_HEAD_BLEND_DATA(Ped ped, HeadBlend* headBlendData)
Hash
0x2746BD9D88C5C5D0

Open in the interactive natives reference