# getPedHairColor (Shared)

> Tells the colour of a ped's hair and of its highlights, if any.

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

## Syntax

```lua
int|false getPedHairColor(ped ped)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `ped` | `ped` | The ped or player. |

## Returns

The hair's colour (one number, the palette row, or three numbers `r, g, b`, as it was set) followed by the highlights' colour in the same form, if any. `false` if the hair was not tinted.

## Example

```lua
local hair = getPedHairColor(localPlayer)
if not hair then
    outputDebugString("default hair colour")
end
```

## See also

- [setPedHairColor (Shared)](https://wiki.mymp.gg/en/setPedHairColor.md): Tints a ped's hair and, if you want, its highlights.
