Player::eyeColor

From RAGE Multiplayer Wiki
Revision as of 08:13, 15 June 2018 by MrPancakers (talk | contribs) (Created page with "Sets/gets the players eye color == Syntax == <syntaxhighlight lang="javascript"> player.eyeColor; </syntaxhighlight> ==Examples== This lets you set the eye color of your play...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sets/gets the players eye color

Syntax

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);
});

See Also