getPedOverlayColor
Shared
Tells the colour of an overlay the ped wears on its face.
int|false getPedOverlayColor(ped ped, string name)
Parameters
| Name | Type | Description |
|---|---|---|
| ped | ped | The ped or player. |
| name | string | The 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