Skip to main content

BaseAppearance

type BaseAppearance = {
  eyeColor?: number;
  faceFeatures?: number[];
  hairColor?: {
     color: number;
     highlight: number;
  };
  hairStyle?: PedComponent;
  headBlend?: HeadBlend;
  headOverlays?: Record<number, HeadOverlay>;
  model: string;
};

Defined in: src/modules/core/characters/types.ts:78

Base character appearance data - stored in database. Does NOT include clothing components or props (those come from equipment). Includes model, face/body customization for freemode characters.

Properties

PropertyTypeDescriptionDefined in
eyeColor?numberEye colorsrc/modules/core/characters/types.ts:101
faceFeatures?number[]Face features for freemode characters (array of 20 values, -1.0 to 1.0)src/modules/core/characters/types.ts:89
hairColor?{ color: number; highlight: number; }Hair color (primary and highlight)src/modules/core/characters/types.ts:95
hairColor.colornumber-src/modules/core/characters/types.ts:96
hairColor.highlightnumber-src/modules/core/characters/types.ts:97
hairStyle?PedComponentHair style (component 2) - kept in base because it's part of character identitysrc/modules/core/characters/types.ts:83
headBlend?HeadBlendHead blend for freemode characterssrc/modules/core/characters/types.ts:86
headOverlays?Record<number, HeadOverlay>Head overlays indexed by overlay ID (0-12)src/modules/core/characters/types.ts:92
modelstringModel hash or model name (e.g., "mp_m_freemode_01")src/modules/core/characters/types.ts:80