_SET_PED_FACE_FEATURE
Sets the various freemode face features, e.g.
Signature
void _SET_PED_FACE_FEATURE(Ped ped, int index, float scale);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | The ped entity |
index | int | An integer ranging from 0 to 19 |
scale | float | A float ranging from -1.0 to 1.0 |
Returns void
Description
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
SetPedHeadBlendDataprior 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
SetPedFaceFeature(ped, index, scale)
-- always works, by hash
Citizen.InvokeNative(0x6c8d4458, ped, index, scale)JavaScript and C#
SetPedFaceFeature(ped, index, scale);
// by hash
Citizen.invokeNative('0x6c8d4458', ped, index, scale + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.