Player::hairColor
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.
This property returns the player's primary hair color.
Note: This property is read-only.
Getter
- number The player's hair color
Example
Server-Side
const player = mp.players.at(0);
player.setHairColor(5, 0);
const hairColor = player.hairColor; // hairColor is 5