RedM Natives

_SET_PED_HEAD_OVERLAY_COLOR

Used for freemode (online) characters.

Hash0x78935A27
Runtime nameSetPedHeadOverlayColor
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void _SET_PED_HEAD_OVERLAY_COLOR(Ped ped, int overlayID, int colorType, int colorID, int secondColorID);

Parameters

NameTypeDescription
pedPed

The ped entity

overlayIDint

An integer representing the overlay id

colorTypeint

1 for eyebrows, beards, makeup, and chest hair; 2 for blush and lipstick; and 0 otherwise, though not called in those cases.

colorIDint

An integer representing the primary color id

secondColorIDint

An integer representing the secondary color id

Returns void

Description

Cfx.re native reference

Used for freemode (online) characters.
Called after SET_PED_HEAD_OVERLAY().

Note: You may need to call SetPedHeadBlendData prior to calling this native in order for it to work.

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

Usage

Lua
SetPedHeadOverlayColor(ped, overlayID, colorType, colorID, secondColorID)

-- always works, by hash
Citizen.InvokeNative(0x78935a27, ped, overlayID, colorType, colorID, secondColorID)
JavaScript and C#
JavaScript
SetPedHeadOverlayColor(ped, overlayID, colorType, colorID, secondColorID);

// by hash
Citizen.invokeNative('0x78935a27', ped, overlayID, colorType, colorID, secondColorID);
C#
Function.Call((Hash)0x78935a27, ped, overlayID, colorType, colorID, secondColorID);

Sources

Cfx.re native reference

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