private Overlay GetOverlay(OverlayID overlayID) { int index = 0; int colorType = 0; int firstColor = 0; int secondColor = 0; float overlayOpacity = 0f; GetPedHeadOverlayData(Game.PlayerPed.Handle, (int)overlayID, ref index, ref colorType, ref firstColor, ref secondColor, ref overlayOpacity); return(new Overlay(index, overlayOpacity, new OverlayColor(firstColor, secondColor))); }
public void SetHeadOverlay(OverlayID overlayId, int index, int colorId, int secondColorId, float opacity = 1f) { SetPedHeadOverlay(Game.PlayerPed.Handle, (int)overlayId, index, opacity); switch (overlayId) { case OverlayID.Eyebrows: case OverlayID.FacialHair: case OverlayID.ChestHair: SetPedHeadOverlayColor(Game.PlayerPed.Handle, (int)overlayId, 1, colorId, secondColorId); break; case OverlayID.Blush: case OverlayID.Lipstick: SetPedHeadOverlayColor(Game.PlayerPed.Handle, (int)overlayId, 2, colorId, secondColorId); break; } }
public override string ToString() { return(string.Format("{0} ({1})", Drawable != null ? Drawable.Name : OverlayID.ToString(), OverlayValue)); }