RedM Natives

_SET_PED_EYE_COLOR

Used for freemode (online) characters.

Hash0xEC09DB1B
Runtime nameSetPedEyeColor
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void _SET_PED_EYE_COLOR(Ped ped, int index);

Parameters

NameTypeDescription
pedPed—
indexint—

Returns void

Description

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.

Usage

Lua
SetPedEyeColor(ped, index)

-- always works, by hash
Citizen.InvokeNative(0xec09db1b, ped, index)
JavaScript and C#
JavaScript
SetPedEyeColor(ped, index);

// by hash
Citizen.invokeNative('0xec09db1b', ped, index);
C#
Function.Call((Hash)0xec09db1b, ped, index);

Sources

Cfx.re native reference

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