# CFX::_SET_PED_HEAD_OVERLAY_COLOR

- **Hash:** `0x78935A27`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `SetPedHeadOverlayColor`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/_SET_PED_HEAD_OVERLAY_COLOR

## Signature

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

## Parameters

- `ped` (`Ped`) — The ped entity
- `overlayID` (`int`) — An integer representing the overlay id
- `colorType` (`int`) — 1 for eyebrows, beards, makeup, and chest hair; 2 for blush and lipstick; and 0 otherwise, though not called in those cases.
- `colorID` (`int`) — An integer representing the primary color id
- `secondColorID` (`int`) — An integer representing the secondary color id

## Returns

`void`

## Description

*Source: Cfx.re native reference*

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

**Note:**
You may need to call [`SetPedHeadBlendData`](#\_0x9414E18B9434C2FE) 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](?\_0x497BF74A7B9CB952).**

## Usage

### Lua

```lua
SetPedHeadOverlayColor(ped, overlayID, colorType, colorID, secondColorID)

-- always available, by hash
Citizen.InvokeNative(0x78935a27, ped, overlayID, colorType, colorID, secondColorID)
```

### JavaScript

```js
SetPedHeadOverlayColor(ped, overlayID, colorType, colorID, secondColorID);

// by hash
Citizen.invokeNative('0x78935a27', ped, overlayID, colorType, colorID, secondColorID);
```

### C#

```csharp
Function.Call((Hash)0x78935a27, ped, overlayID, colorType, colorID, secondColorID);
```

*Sources: Cfx.re native reference.*
