SetPlayerHairColor

From GT-MP
Jump to: navigation, search
SetPlayerHairColor
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Sets the haircolor of a specified player.


Dialog-warning.png

Note: The API function SetPlayerHeadBlendData has to be called before this function, otherwise the hair color will be default green.

Syntax

API.setPlayerHairColor(LocalHandle player, int hairColorId, int hairHighlightId);

Required Arguments

  • player: parameter input should be in LocalHandle type.
  • hairColorId: parameter input should be in int type.
  • hairHighlightId: parameter input should be in int type.

Usage example(s)

API.setPlayerHairColor(LocalHandle player, int hairColorId, int hairHighlightId);

References