M MY Multiplayer: Wiki
Side
Kind

getPedOverlayColor

Shared

Tells the colour of an overlay the ped wears on its face.

int|false getPedOverlayColor(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

One number, the palette row, or three numbers r, g, b, as it was set. false if the ped does not wear the overlay or it was not tinted.

Example

local r, g, b = getPedOverlayColor(localPlayer, "lipstick")
if r and g then
    outputDebugString(("lipstick %d %d %d"):format(r, g, b))
elseif r then
    outputDebugString("lipstick palette row " .. r)
end

See also