Player::setHeadOverlay: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
OverlayID ranges from 0 to 12, index from 0 to _GET_NUM_OVERLAY_VALUES(overlayID)-1, and opacity from 0.0 to 1.0. <br><br>overlayID      Part                  Index, to disable<br>0              Blemishes            0 - 23, 255<br>1              Facial Hair          0 - 28, 255<br>2              Eyebrows              0 - 33, 255<br>3              Ageing                0 - 14, 255<br>4              Makeup                0 - 74, 255<br>5              Blush                0 - 6, 255<br>6              Complexion            0 - 11, 255<br>7              Sun Damage            0 - 10, 255<br>8              Lipstick              0 - 9, 255<br>9              Moles/Freckles        0 - 17, 255<br>10              Chest Hair            0 - 16, 255<br>11              Body Blemishes        0 - 11, 255<br>12              Add Body Blemishes    0 - 1, 255
OverlayID ranges from 0 to 12, index from 0 to _GET_NUM_OVERLAY_VALUES(overlayID)-1, and opacity from 0.0 to 1.0. <br><br>overlayID      Part                  Index, to disable<br>0              Blemishes            0 - 23, 255<br>1              Facial Hair          0 - 28, 255<br>2              Eyebrows              0 - 33, 255<br>3              Ageing                0 - 14, 255<br>4              Makeup                0 - 74, 255<br>5              Blush                0 - 6, 255<br>6              Complexion            0 - 11, 255<br>7              Sun Damage            0 - 10, 255<br>8              Lipstick              0 - 9, 255<br>9              Moles/Freckles        0 - 17, 255<br>10              Chest Hair            0 - 16, 255<br>11              Body Blemishes        0 - 11, 255<br>12              Add Body Blemishes    0 - 1, 255


<b>To disable any overlay use 255.</b>
{| class="wikitable"
 
| OverlayID
| Part                 
| Index
 
| 0
|
|
 
| 1
|
|
 
| 2
|
|
 
| 3
|
|
 
| 4
|
|
 
| 5
|
|
 
| 6
|
|
 
| 7
|
|
 
| 8
|
|
 
 
| 9
|
|
 
 
| 10
|
|
 
 
| 11
|
|
 
|}
 
<b>To disable any overlay use 255 as OverlayID.</b>


==Syntax==
==Syntax==

Revision as of 03:35, 21 February 2020

OverlayID ranges from 0 to 12, index from 0 to _GET_NUM_OVERLAY_VALUES(overlayID)-1, and opacity from 0.0 to 1.0.

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

OverlayID Part Index 0 1 2 3 4 5 6 7 8


9


10


11

To disable any overlay use 255 as OverlayID.

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