M MY Multiplayer: Wiki
Side
Kind

setPedHeadShape

Shared

Adjusts a feature of a ped's face, such as the nose or the chin.

bool setPedHeadShape(ped ped, string|int feature, float scale)

Parameters

NameTypeDescription
pedpedThe ped or player.
featurestring|intThe name of a feature the head's <Features> declares, or its index in that list.
scalefloatFrom -1 to 1. 0 puts the feature back to normal.

Returns

true if it was applied, false if the ped already has 64 adjusted features. Raises an error if the feature does not exist or the scale is outside -1 to 1.

On the server, the change is sent to every client. On the client, it applies to this client only.

Example

addCommandHandler("nariz", function(player, command, scale)
    setPedHeadShape(player, "nose_width", tonumber(scale) or 0)
end)
Coming from MTAMTA does not have this function. It follows FiveM's SetPedFaceFeature.

See also