setPedFaceFeatures
The setPedFaceFeatures
export allows you to apply detailed morph targets to a freemode ped's face. These values control features like nose width, jawline, cheekbone shape, and other customizable facial characteristics.
How to Use
To apply a set of face features to a ped, use the following code:
This export takes:
ped
: The ped entity to modifyfaceFeatures
: A table where each key corresponds to an entry inconstants.FACE_FEATURES
and each value is a float between-1.0
and1.0
The function loops through all predefined facial features and applies them with SetPedFaceFeature
, converting each to a float for proper interpolation. It is ideal for restoring saved faces or generating new randomized ones.
Last updated