_SET_PED_EYE_COLOR
Used for freemode (online) characters.
Signature
void _SET_PED_EYE_COLOR(Ped ped, int index);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
index | int | — |
Returns void
Description
Used for freemode (online) characters. Indices:
- black
- very light blue/green
- dark blue
- brown
- darker brown
- light brown
- blue
- light blue
- pink
- yellow
- purple
- black
- dark green
- light brown
- yellow/black pattern
- light colored spiral pattern
- shiny red
- shiny half blue/half red
- half black/half light blue
- white/red perimter
- green snake
- red snake
- dark blue snake
- dark yellow
- bright yellow
- all black
- red small pupil
- devil blue/black
- white small pupil
- glossed over
This is the server-side RPC native equivalent of the client native _SET_PED_EYE_COLOR.
Usage
SetPedEyeColor(ped, index)
-- always works, by hash
Citizen.InvokeNative(0xec09db1b, ped, index)JavaScript and C#
SetPedEyeColor(ped, index);
// by hash
Citizen.invokeNative('0xec09db1b', ped, index);Function.Call((Hash)0xec09db1b, ped, index);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.