getPedHairColor
Shared
Tells the colour of a ped's hair and of its highlights, if any.
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
local hair = getPedHairColor(localPlayer)
if not hair then
outputDebugString("default hair colour")
end