M MY Multiplayer: Wiki
Side
Kind

getPedOverlay

Shared

Tells which variant of an overlay a ped wears on its face.

int, float|false getPedOverlay(ped ped, string name)

Parameters

NameTypeDescription
pedpedThe ped or player.
namestringThe overlay's name, as the ped's head declares it. Case does not matter.

Returns

The variant and the opacity, or false if the ped does not wear that overlay.

Example

local variation, opacity = getPedOverlay(localPlayer, "beard")
if variation then
    outputDebugString("beard " .. variation .. " at " .. opacity)
end

See also