PedClient

setPedHairTint

SET_PED_HAIR_TINT0x4CFFC65454C93A49

The GTA V native SET_PED_HAIR_TINT of the PED namespace, as LS:MP client scripts call it: the global function setPedHairTint, in JavaScript and in Lua.

SignatureJavaScript
setPedHairTint(ped: Ped, colorID: number, highlightColorID: number): void
SignatureLua
setPedHairTint(ped: Ped, colorID: integer, highlightColorID: integer)

Usage

JavaScript
setPedHairTint(ped, colorID, highlightColorID);
Lua
setPedHairTint(ped, colorID, highlightColorID)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
colorIDintnumberinteger
highlightColorIDintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_HAIR_TINT(Ped ped, int colorID, int highlightColorID)
Hash
0x4CFFC65454C93A49
Formerly
_SET_PED_HAIR_COLOR

Open in the interactive natives reference