# CFX::_SET_PED_EYE_COLOR

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

## Signature

```c
void _SET_PED_EYE_COLOR(Ped ped, int index);
```

## Parameters

- `ped` (`Ped`)
- `index` (`int`)

## Returns

`void`

## Description

*Source: Cfx.re native reference*

Used for freemode (online) characters.
Indices:

1.  black
2.  very light blue/green
3.  dark blue
4.  brown
5.  darker brown
6.  light brown
7.  blue
8.  light blue
9.  pink
10. yellow
11. purple
12. black
13. dark green
14. light brown
15. yellow/black pattern
16. light colored spiral pattern
17. shiny red
18. shiny half blue/half red
19. half black/half light blue
20. white/red perimter
21. green snake
22. red snake
23. dark blue snake
24. dark yellow
25. bright yellow
26. all black
27. red small pupil
28. devil blue/black
29. white small pupil
30. glossed over

**This is the server-side RPC native equivalent of the client native [\_SET_PED_EYE_COLOR](?\_0x50B56988B170AFDF).**

## Usage

### Lua

```lua
SetPedEyeColor(ped, index)

-- always available, by hash
Citizen.InvokeNative(0xec09db1b, ped, index)
```

### JavaScript

```js
SetPedEyeColor(ped, index);

// by hash
Citizen.invokeNative('0xec09db1b', ped, index);
```

### C#

```csharp
Function.Call((Hash)0xec09db1b, ped, index);
```

*Sources: Cfx.re native reference.*
