Player::setHeadOverlay

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

OverlayID ranges from 0 to 12, index from 0 to _GET_NUM_OVERLAY_VALUES(overlayID)-1, and opacity from 0.0 to 1.0.
First and second color you can take in the list of hair colors.
List of colors: https://wiki.gtanet.work/index.php?title=Hair_Colors

OverlayID Part Index
0 Blemishes 0-23
1 Facial Hair 0-28
2 Eyebrows 0-33
3 Ageing 0-14
4 Makeup 0-74
5 Blush 0-6
6 Complexion 0-11
7 Sun Damage 0-10
8 Lipstick 0-9
9 Moles/Freckles 0-17
10 Chest Hair 0-16
11 Body Blemishes 0-11
12 Add Body Blemishes 0-1

To disable any overlay use 255 as index.

Syntax

Client-Side
player.setHeadOverlay(overlayID, index, opacity, firstColor, secondColor);


Server-Side
player.setHeadOverlay(overlayID, [index, opacity, firstColor, secondColor]);

Required Arguments

  • overlayID: int
  • index: int
  • opacity: float
  • firstColor: int
  • secondColor: int

Return value

  • Undefined

Example

// todo

See also