getPedHeadBlendData
GET_PED_HEAD_BLEND_DATA0x2746BD9D88C5C5D0The 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.
getPedHeadBlendData(ped: Ped): [ok: boolean, headBlendData: HeadBlend]getPedHeadBlendData(ped: Ped): boolean, tableUsage
JavaScript
const [ok, headBlendData] = getPedHeadBlendData(ped);Lua
local ok, headBlendData = getPedHeadBlendData(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
2 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | headBlendData | HeadBlend | HeadBlend | table | output |
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