M MY Multiplayer: Wiki
Side
Kind

getPedHeadShape

Shared

Tells how far a feature of a ped's face was adjusted.

float|false getPedHeadShape(ped ped, string|int feature)

Parameters

NameTypeDescription
pedpedThe ped or player.
featurestring|intThe name of a feature the head's <Features> declares, or its index in that list.

Returns

The scale, from -1 to 1 (0 if the feature was not adjusted), or false if it is not a ped. Raises an error if the feature does not exist.

Example

local width = getPedHeadShape(localPlayer, "nose_width")
outputDebugString("nose width: " .. width)

See also