Skip to main content

Player::eyeColor

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.

Sets/gets the players eye color

Syntax​

Number player.eyeColor;

Examples​

This lets you set the eye color of your player and will output the value of the players eye color in the chat.

Server-Side

mp.events.addCommand('eyecolor', (player, _, id) => {
player.eyeColor = parseInt(id);
player.outputChatBox("Eye Color: " + eColor);
});