PedClient

setHeadBlendEyeColor

SET_HEAD_BLEND_EYE_COLOR0x50B56988B170AFDF

The GTA V native SET_HEAD_BLEND_EYE_COLOR of the PED namespace, as LS:MP client scripts call it: the global function setHeadBlendEyeColor, in JavaScript and in Lua.

SignatureJavaScript
setHeadBlendEyeColor(ped: Ped, index: number): void
SignatureLua
setHeadBlendEyeColor(ped: Ped, index: integer)

Usage

JavaScript
setHeadBlendEyeColor(ped, index);
Lua
setHeadBlendEyeColor(ped, index)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
indexintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Used for freemode (online) characters.

For some reason, the scripts use a rounded float for the index.
Indexes:
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
28. red small pupil
29. devil blue/black
30. white small pupil
31. glossed over

Reference

Namespace
Ped PED
In the game
void SET_HEAD_BLEND_EYE_COLOR(Ped ped, int index)
Hash
0x50B56988B170AFDF
Formerly
_SET_PED_EYE_COLOR

Open in the interactive natives reference