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

Hierarchy (view full)

Implements

Constructors

Methods

  • 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: this

      The object to compare to.

    Returns boolean

    true if the objects are equal, false otherwise.

  • Returns number

    A hash code for the object instance.

  • Type Parameters

    • K extends
          | "birthdate"
          | "firstname"
          | "lastname"
          | "gender"
          | "nationality"

    Parameters

    Returns void

  • Parameters

    • data: PedData
    • syncWithClient: boolean = true

    Returns void

  • Updates the player's position to the current position of their ped.

    Returns void

  • No Self

    Emits the PlayerReady event to the client and makes the client load the instance of the player. It is used as a sort of login method. Should only be called once throught the player's lifecycle

    Parameters

    • player: Player

      The player to emit the event to.

    Returns void