M MY Multiplayer: Wiki
Side
Kind

getPedBodyShape

Shared

Tells how much of a body shape a ped has.

float|false getPedBodyShape(ped ped, string name)

Parameters

NameTypeDescription
pedpedThe ped or player.
namestringThe 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)

See also