PedClient

setPedMicroMorph

SET_PED_MICRO_MORPH0x71A5C1DBA060049E

The GTA V native SET_PED_MICRO_MORPH of the PED namespace, as LS:MP client scripts call it: the global function setPedMicroMorph, in JavaScript and in Lua.

SignatureJavaScript
setPedMicroMorph(ped: Ped, index: number, scale: number): void
SignatureLua
setPedMicroMorph(ped: Ped, index: integer, scale: number)

Usage

JavaScript
setPedMicroMorph(ped, index, scale);
Lua
setPedMicroMorph(ped, index, scale)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
indexintnumberinteger
scalefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets the various freemode face features, e.g. nose length, chin shape. Scale ranges from -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)

Reference

Namespace
Ped PED
In the game
void SET_PED_MICRO_MORPH(Ped ped, int index, float scale)
Hash
0x71A5C1DBA060049E
Formerly
_SET_PED_FACE_FEATURE _SET_PED_MICRO_MORPH_VALUE

Open in the interactive natives reference