RedM Natives

SET_PED_HAIR_TINT

Sets the tint index for the hair on the specified ped.

Hash0xA23FE32C
Runtime nameSetPedHairTint
NamespaceCFX
SideServer
NameOfficial
Docs
Also known as_SET_PED_HAIR_COLOR

Signature

void SET_PED_HAIR_TINT(Ped ped, int colorID, int highlightColorID);

Parameters

NameTypeDescription
pedPed

The Ped whose hair tint is to be set.

colorIDint

The tint index for the primary hair color.

highlightColorIDint

The tint index for the hair highlight color.

Returns void

Description

Cfx.re native reference

Sets the tint index for the hair on the specified ped.

NativeDB Introduced: v323

This is the server-side RPC native equivalent of the client native SET_PED_HAIR_TINT.

Usage

Lua
SetPedHairTint(ped, colorID, highlightColorID)

-- always works, by hash
Citizen.InvokeNative(0xa23fe32c, ped, colorID, highlightColorID)
JavaScript and C#
JavaScript
SetPedHairTint(ped, colorID, highlightColorID);

// by hash
Citizen.invokeNative('0xa23fe32c', ped, colorID, highlightColorID);
C#
Function.Call((Hash)0xa23fe32c, ped, colorID, highlightColorID);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.