# getPedOverlayColor (Shared)

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

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Appearance
- **URL**: https://wiki.mymp.gg/en/getPedOverlayColor

## Syntax

```lua
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

```lua
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

- [setPedOverlayColor (Shared)](https://wiki.mymp.gg/en/setPedOverlayColor.md): Tints an overlay the ped wears on its face, by a palette row or by a colour.
- [getPedOverlay (Shared)](https://wiki.mymp.gg/en/getPedOverlay.md): Tells which variant of an overlay a ped wears on its face.
