Skip to main content
Branch: Release Candidate

IClientEvent

Index

Properties

anyResourceError

anyResourceError: (resourceName: string) => void

anyResourceStart

anyResourceStart: (resourceName: string) => void

anyResourceStop

anyResourceStop: (resourceName: string) => void

baseObjectCreate

baseObjectCreate: (baseObject: BaseObject) => void

baseObjectRemove

baseObjectRemove: (baseObject: BaseObject) => void

changedVehicleSeat

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

connectionComplete

connectionComplete: () => void

consoleCommand

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

disconnect

disconnect: () => void

enteredVehicle

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

entityEnterColshape

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

entityHitEntity

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

entityLeaveColshape

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

gameEntityCreate

gameEntityCreate: (entity: Entity) => void

gameEntityDestroy

gameEntityDestroy: (entity: Entity) => void

globalMetaChange

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

globalSyncedMetaChange

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

keydown

keydown: (key: KeyCode) => void

keyup

keyup: (key: KeyCode) => void

leftVehicle

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

localMetaChange

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

metaChange

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

netOwnerChange

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

playerAnimationChange

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

playerBulletHit

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

playerStartTalking

playerStartTalking: (target: Player) => void

playerStopTalking

playerStopTalking: (target: Player) => void

playerWeaponChange

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

playerWeaponShoot

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

removeEntity

removeEntity: (object: Entity) => void

resourceError

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

resourceStart

resourceStart: (errored: boolean) => void

resourceStop

resourceStop: () => void

spawned

spawned: () => void

startEnteringVehicle

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

startLeavingVehicle

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

streamSyncedMetaChange

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

syncedMetaChange

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

taskChange

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

voiceConnection

voiceConnection: (state: VoiceConnectionState) => void

weaponDamage

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

windowFocusChange

windowFocusChange: (isFocused: boolean) => void

windowResolutionChange

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

worldObjectPositionChange

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

worldObjectStreamIn

worldObjectStreamIn: (object: WorldObject) => void

worldObjectStreamOut

worldObjectStreamOut: (object: WorldObject) => void