Base class for all entities in the framework. Still wondering if this should be an abstract class. May change in the future.

Hierarchy (view full)

Implements

Constructors

Properties

entityId: number
modelHash: number
modelName: Optional<string>

Methods

  • Returns string

    A JSON string representation of the object.

  • Clones the object.

    Returns this

  • Parameters

    • other: this

    Returns -1 | 0 | 1

    -1 if this is less than other, 0 if they are equal, 1 if this is greater than other.

  • Checks if the object is equal to another object.

    Parameters

    • other: CEntity

      The object to compare to.

    Returns boolean

    true if the objects are equal, false otherwise.

  • Returns Record<
        | "COMP_HEAD"
        | "COMP_BERD"
        | "COMP_HAIR"
        | "COMP_UPPR"
        | "COMP_LOWR"
        | "COMP_HAND"
        | "COMP_FEET"
        | "COMP_TEEF"
        | "COMP_ACCS"
        | "COMP_TASK"
        | "COMP_DECL"
        | "COMP_JBIB", Record<number, number>>

  • Returns Record<
        | "NOSE_WIDTH"
        | "NOSE_PEAK"
        | "NOSE_LENGTH"
        | "NOSE_BONE_CURVE"
        | "NOSE_TIP"
        | "NOSE_BONE_TWIST"
        | "EYEBROW_HEIGHT"
        | "EYEBROW_DEPTH"
        | "CHEEK_HEIGHT"
        | "CHEEK_DEPTH"
        | "CHEEK_WIDTH"
        | "EYE_OPENING"
        | "LIP_THICKNESS"
        | "JAW_WIDTH"
        | "JAW_ROUNDNESS"
        | "CHIN_HEIGHT"
        | "CHIN_LENGTH"
        | "CHIN_ROUNDNESS"
        | "CHIN_HOLE"
        | "NECK_THICKNESS", {
        max: number;
        min: number;
    }>

  • Returns Record<
        | "BLEMISHES"
        | "FACIAL_HAIR"
        | "EYEBROWS"
        | "AGEING"
        | "MAKEUP"
        | "BLUSH"
        | "COMPLEXION"
        | "SUN_DAMAGE"
        | "LIPSTICK"
        | "MOLES"
        | "CHEST_HAIR"
        | "BODY_BLEMISHES"
        | "ADD_BODY_BLEMISHES", number>

  • Returns Record<
        | "ANCHOR_HEAD"
        | "ANCHOR_EYES"
        | "ANCHOR_EARS"
        | "ANCHOR_MOUTH"
        | "ANCHOR_LEFT_HAND"
        | "ANCHOR_RIGHT_HAND"
        | "ANCHOR_LEFT_WRIST"
        | "ANCHOR_RIGHT_WRIST"
        | "ANCHOR_HIP"
        | "ANCHOR_LEFT_FOOT"
        | "ANCHOR_RIGHT_FOOT"
        | "ANCHOR_PH_L_HAND"
        | "ANCHOR_PH_R_HAND", Record<number, number>>

  • Returns Record<
        | "COMP_HEAD"
        | "COMP_BERD"
        | "COMP_HAIR"
        | "COMP_UPPR"
        | "COMP_LOWR"
        | "COMP_HAND"
        | "COMP_FEET"
        | "COMP_TEEF"
        | "COMP_ACCS"
        | "COMP_TASK"
        | "COMP_DECL"
        | "COMP_JBIB", {
        drawable: number;
        texture: number;
    }>

  • Returns Record<
        | "NOSE_WIDTH"
        | "NOSE_PEAK"
        | "NOSE_LENGTH"
        | "NOSE_BONE_CURVE"
        | "NOSE_TIP"
        | "NOSE_BONE_TWIST"
        | "EYEBROW_HEIGHT"
        | "EYEBROW_DEPTH"
        | "CHEEK_HEIGHT"
        | "CHEEK_DEPTH"
        | "CHEEK_WIDTH"
        | "EYE_OPENING"
        | "LIP_THICKNESS"
        | "JAW_WIDTH"
        | "JAW_ROUNDNESS"
        | "CHIN_HEIGHT"
        | "CHIN_LENGTH"
        | "CHIN_ROUNDNESS"
        | "CHIN_HOLE"
        | "NECK_THICKNESS", number>

  • Returns {
        female: number[];
        male: number[];
    }

    • female: number[]
    • male: number[]
  • Returns Record<
        | "BLEMISHES"
        | "FACIAL_HAIR"
        | "EYEBROWS"
        | "AGEING"
        | "MAKEUP"
        | "BLUSH"
        | "COMPLEXION"
        | "SUN_DAMAGE"
        | "LIPSTICK"
        | "MOLES"
        | "CHEST_HAIR"
        | "BODY_BLEMISHES"
        | "ADD_BODY_BLEMISHES", PedHeadOverlayData>

  • Returns Record<
        | "ANCHOR_HEAD"
        | "ANCHOR_EYES"
        | "ANCHOR_EARS"
        | "ANCHOR_MOUTH"
        | "ANCHOR_LEFT_HAND"
        | "ANCHOR_RIGHT_HAND"
        | "ANCHOR_LEFT_WRIST"
        | "ANCHOR_RIGHT_WRIST"
        | "ANCHOR_HIP"
        | "ANCHOR_LEFT_FOOT"
        | "ANCHOR_RIGHT_FOOT"
        | "ANCHOR_PH_L_HAND"
        | "ANCHOR_PH_R_HAND", {
        drawable: number;
        texture: number;
    }>

  • Gets the size of the model

    Returns Vector3

    A vector3 representing the size of the model in the x, y, and z dimensions

  • Sets the ped data from a PedData object. Does not set the ped model to the one from PedData.pedModel, it assumes the ped given to the constructor already has that model.

    Parameters

    Returns void