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)

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.

  • Gets the size of the model

    Returns Vector3

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