Class GameAbstract

Hierarchy

  • Game

Constructors

Properties

hashCache: Map<string, number> = ...

Accessors

  • get GameBuild(): number
  • Returns number

  • get GameName(): string
  • Returns string

  • get GameTime(): number
  • Gets how many milliseconds the game has been open this session

    Returns number

  • get RegisteredCommands(): [{
        name: string;
    }]
  • Returns [{
        name: string;
    }]

Methods

  • Get an iterable list of players currently on the server.

    Returns

    Iterable list of Player objects.

    Returns IterableIterator<Player>

  • Calculate the Jenkins One At A Time (joaat) has from the given string.

    Parameters

    • input: string

      The input string to calculate the hash

    Returns number

  • Get an interable list of peds currently on the server

    Returns

    Iterable list of Peds.

    Returns IterableIterator<Ped>

  • Get an interable list of props currently on the server

    Returns

    Iterable list of Props.

    Returns IterableIterator<Prop>

  • Get an interable list of vehicles currently on the server

    Returns

    Iterable list of Vehicles.

    Returns IterableIterator<Vehicle>

  • Parameters

    • name: string
    • handler: ((player: Player, args: any[]) => void)
        • (player: Player, args: any[]): void
        • Parameters

          Returns void

    • restricted: boolean = false

    Returns void

Generated using TypeDoc