RedM Natives

_SET_PED_FACE_FEATURE

Sets the various freemode face features, e.g.

Hash0x6C8D4458
Runtime nameSetPedFaceFeature
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void _SET_PED_FACE_FEATURE(Ped ped, int index, float scale);

Parameters

NameTypeDescription
pedPed

The ped entity

indexint

An integer ranging from 0 to 19

scalefloat

A float ranging from -1.0 to 1.0

Returns void

Description

Cfx.re native reference

Sets the various freemode face features, e.g. nose length, chin shape. Indexes (From 0 to 19): Parentheses indicate morph scale/direction as in (-1.0 to 1.0)

  • 0: Nose Width (Thin/Wide)
  • 1: Nose Peak (Up/Down)
  • 2: Nose Length (Long/Short)
  • 3: Nose Bone Curveness (Crooked/Curved)
  • 4: Nose Tip (Up/Down)
  • 5: Nose Bone Twist (Left/Right)
  • 6: Eyebrow (Up/Down)
  • 7: Eyebrow (In/Out)
  • 8: Cheek Bones (Up/Down)
  • 9: Cheek Sideways Bone Size (In/Out)
  • 10: Cheek Bones Width (Puffed/Gaunt)
  • 11: Eye Opening (Both) (Wide/Squinted)
  • 12: Lip Thickness (Both) (Fat/Thin)
  • 13: Jaw Bone Width (Narrow/Wide)
  • 14: Jaw Bone Shape (Round/Square)
  • 15: Chin Bone (Up/Down)
  • 16: Chin Bone Length (In/Out or Backward/Forward)
  • 17: Chin Bone Shape (Pointed/Square)
  • 18: Chin Hole (Chin Bum)
  • 19: Neck Thickness (Thin/Thick) Note: You may need to call SetPedHeadBlendData prior to calling this native in order for it to work.

This is the server-side RPC native equivalent of the client native _SET_PED_FACE_FEATURE.

Usage

Lua
SetPedFaceFeature(ped, index, scale)

-- always works, by hash
Citizen.InvokeNative(0x6c8d4458, ped, index, scale)
JavaScript and C#
JavaScript
SetPedFaceFeature(ped, index, scale);

// by hash
Citizen.invokeNative('0x6c8d4458', ped, index, scale + 0.0000001);
C#
Function.Call((Hash)0x6c8d4458, ped, index, scale);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.