getPedBodyShape
Shared
Tells how much of a body shape a ped has.
float|false getPedBodyShape(ped ped, string name)
Parameters
| Name | Type | Description |
|---|---|---|
| ped | ped | The ped or player. |
| name | string | The shape's name. |
Returns
The factor, from 0 to 1 (0 if the ped does not have that shape), or false if it is not a ped.
Example
local muscle = getPedBodyShape(localPlayer, "muscle")
outputDebugString("muscle: " .. muscle)