A class that represents a byte object. Tries to replicate the behavior of Java's Object base class.

Hierarchy (view full)

Constructors

  • Model class to handle basic model operations. If the model name is provided, the hash will be calculated. If the hash is provided, the name will be nil. Always prefer using the model name as it leads to less errors.

    Parameters

    • init: string | number

      The model name or hash

    Returns CModel

Properties

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.

  • Gets the size of the model

    Returns Vector3

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