Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IClientEvent

Hierarchy

  • IClientEvent

Index

Properties

anyResourceError

anyResourceError: (resourceName: string) => void

Type declaration

    • (resourceName: string): void
    • Parameters

      • resourceName: string

      Returns void

anyResourceStart

anyResourceStart: (resourceName: string) => void

Type declaration

    • (resourceName: string): void
    • Parameters

      • resourceName: string

      Returns void

anyResourceStop

anyResourceStop: (resourceName: string) => void

Type declaration

    • (resourceName: string): void
    • Parameters

      • resourceName: string

      Returns void

baseObjectCreate

baseObjectCreate: (baseObject: BaseObject) => void

Type declaration

baseObjectRemove

baseObjectRemove: (baseObject: BaseObject) => void

Type declaration

changedVehicleSeat

changedVehicleSeat: (vehicle: Vehicle, oldSeat: number, seat: number) => void
remarks

The seat indexes start with 1 (driver seat).

Type declaration

    • (vehicle: Vehicle, oldSeat: number, seat: number): void
    • Parameters

      • vehicle: Vehicle
      • oldSeat: number
      • seat: number

      Returns void

connectionComplete

connectionComplete: () => void

Type declaration

    • (): void
    • Returns void

consoleCommand

consoleCommand: (name: string, ...args: string[]) => void

Type declaration

    • (name: string, ...args: string[]): void
    • Parameters

      • name: string
      • Rest ...args: string[]

      Returns void

disconnect

disconnect: () => void

Type declaration

    • (): void
    • Returns void

enteredVehicle

enteredVehicle: (vehicle: Vehicle, seat: number) => void
remarks

The seat indexes start with 1 (driver seat).

Type declaration

    • (vehicle: Vehicle, seat: number): void
    • Parameters

      Returns void

entityEnterColshape

entityEnterColshape: (colshape: Colshape, entity: Entity) => void

Type declaration

entityHitEntity

entityHitEntity: (damager: Entity, target: Entity, weaponHash: number) => void

Type declaration

    • (damager: Entity, target: Entity, weaponHash: number): void
    • Parameters

      Returns void

entityLeaveColshape

entityLeaveColshape: (colshape: Colshape, entity: Entity) => void

Type declaration

gameEntityCreate

gameEntityCreate: (entity: Entity) => void

Type declaration

    • Parameters

      Returns void

gameEntityDestroy

gameEntityDestroy: (entity: Entity) => void

Type declaration

    • Parameters

      Returns void

globalMetaChange

globalMetaChange: (key: string, value: any, oldValue: any) => void

Type declaration

    • (key: string, value: any, oldValue: any): void
    • Parameters

      • key: string
      • value: any
      • oldValue: any

      Returns void

globalSyncedMetaChange

globalSyncedMetaChange: (key: string, value: any, oldValue: any) => void

Type declaration

    • (key: string, value: any, oldValue: any): void
    • Parameters

      • key: string
      • value: any
      • oldValue: any

      Returns void

keydown

keydown: (key: KeyCode) => void

Type declaration

keyup

keyup: (key: KeyCode) => void

Type declaration

leftVehicle

leftVehicle: (vehicle: Vehicle, seat: number) => void
remarks

The seat indexes start with 1 (driver seat).

Type declaration

    • (vehicle: Vehicle, seat: number): void
    • Parameters

      Returns void

localMetaChange

localMetaChange: (key: string, newValue: any, oldValue: any) => void

Type declaration

    • (key: string, newValue: any, oldValue: any): void
    • Parameters

      • key: string
      • newValue: any
      • oldValue: any

      Returns void

metaChange

metaChange: (target: BaseObject, key: string, value: any, oldValue: any) => void

Type declaration

    • (target: BaseObject, key: string, value: any, oldValue: any): void
    • Parameters

      • target: BaseObject
      • key: string
      • value: any
      • oldValue: any

      Returns void

netOwnerChange

netOwnerChange: (entity: Entity, owner: Player | null, oldOwner: Player | null) => void
remarks

Triggers only if the old or new owner is the local player.

Type declaration

playerAnimationChange

playerAnimationChange: (target: Player, oldAnimDict: number, newAnimDict: number, oldAnimName: number, newAnimName: number) => void

Type declaration

    • (target: Player, oldAnimDict: number, newAnimDict: number, oldAnimName: number, newAnimName: number): void
    • Parameters

      • target: Player
      • oldAnimDict: number
      • newAnimDict: number
      • oldAnimName: number
      • newAnimName: number

      Returns void

playerBulletHit

playerBulletHit: (weaponHash: number, victim: Entity, position: Vector3) => void

Type declaration

    • Parameters

      Returns void

playerStartTalking

playerStartTalking: (target: Player) => void

Type declaration

    • Parameters

      Returns void

playerStopTalking

playerStopTalking: (target: Player) => void

Type declaration

    • Parameters

      Returns void

playerWeaponChange

playerWeaponChange: (oldWeapon: number, newWeapon: number) => void

Type declaration

    • (oldWeapon: number, newWeapon: number): void
    • Parameters

      • oldWeapon: number
      • newWeapon: number

      Returns void

playerWeaponShoot

playerWeaponShoot: (weaponHash: number, totalAmmo: number, ammoInClip: number) => void

Type declaration

    • (weaponHash: number, totalAmmo: number, ammoInClip: number): void
    • Parameters

      • weaponHash: number
      • totalAmmo: number
      • ammoInClip: number

      Returns void

removeEntity

removeEntity: (object: Entity) => void

Type declaration

    • Parameters

      Returns void

resourceError

resourceError: (error: Error, file: string, line: number, stackTrace: string) => void

Type declaration

    • (error: Error, file: string, line: number, stackTrace: string): void
    • Parameters

      • error: Error
      • file: string
      • line: number
      • stackTrace: string

      Returns void

resourceStart

resourceStart: (errored: boolean) => void

Type declaration

    • (errored: boolean): void
    • Parameters

      • errored: boolean

      Returns void

resourceStop

resourceStop: () => void

Type declaration

    • (): void
    • Returns void

spawned

spawned: () => void

Type declaration

    • (): void
    • Returns void

startEnteringVehicle

startEnteringVehicle: (vehicle: Vehicle, seat: number, player: Player) => boolean | void
remarks

The seat indexes start with 1 (driver seat).

Type declaration

    • (vehicle: Vehicle, seat: number, player: Player): boolean | void
    • Parameters

      Returns boolean | void

startLeavingVehicle

startLeavingVehicle: (vehicle: Vehicle, seat: number, player: Player) => boolean | void
remarks

The seat indexes start with 1 (driver seat).

Type declaration

    • (vehicle: Vehicle, seat: number, player: Player): boolean | void
    • Parameters

      Returns boolean | void

streamSyncedMetaChange

streamSyncedMetaChange: (object: BaseObject, key: string, value: any, oldValue: any) => void

Type declaration

    • (object: BaseObject, key: string, value: any, oldValue: any): void
    • Parameters

      • object: BaseObject
      • key: string
      • value: any
      • oldValue: any

      Returns void

syncedMetaChange

syncedMetaChange: (entity: Entity, key: string, value: any, oldValue: any) => void

Type declaration

    • (entity: Entity, key: string, value: any, oldValue: any): void
    • Parameters

      • entity: Entity
      • key: string
      • value: any
      • oldValue: any

      Returns void

taskChange

taskChange: (oldTask: number, newTask: number) => boolean | void

Type declaration

    • (oldTask: number, newTask: number): boolean | void
    • Parameters

      • oldTask: number
      • newTask: number

      Returns boolean | void

voiceConnection

voiceConnection: (state: VoiceConnectionState) => void

Type declaration

weaponDamage

weaponDamage: (target: Entity, weaponHash: number, damage: number, offset: Vector3, bodyPart: BodyPart, sourceEntity: Entity) => number | boolean | void

Type declaration

    • (target: Entity, weaponHash: number, damage: number, offset: Vector3, bodyPart: BodyPart, sourceEntity: Entity): number | boolean | void
    • Parameters

      Returns number | boolean | void

windowFocusChange

windowFocusChange: (isFocused: boolean) => void

Type declaration

    • (isFocused: boolean): void
    • Parameters

      • isFocused: boolean

      Returns void

windowResolutionChange

windowResolutionChange: (oldResolution: Vector2, newResolution: Vector2) => void

Type declaration

worldObjectPositionChange

worldObjectPositionChange: (object: WorldObject, oldPosition: Vector3) => void

Triggers when an Virtual Entity position is changed

Type declaration

worldObjectStreamIn

worldObjectStreamIn: (object: WorldObject) => void

Type declaration

worldObjectStreamOut

worldObjectStreamOut: (object: WorldObject) => void

Type declaration