Interface IClientEvent
Package: @altmp/altv-types
Syntax
Properties
|
Improve this Doc
View Source
anyResourceError
Declaration
anyResourceError: (resourceName: string) => void
Property Value
Type |
Description |
(resourceName: string) => void |
|
|
Improve this Doc
View Source
anyResourceStart
Declaration
anyResourceStart: (resourceName: string) => void
Property Value
Type |
Description |
(resourceName: string) => void |
|
|
Improve this Doc
View Source
anyResourceStop
Declaration
anyResourceStop: (resourceName: string) => void
Property Value
Type |
Description |
(resourceName: string) => void |
|
|
Improve this Doc
View Source
changedVehicleSeat
Declaration
changedVehicleSeat: (vehicle: Vehicle, oldSeat: number, seat: number) => void
Property Value
Type |
Description |
(vehicle: Vehicle, oldSeat: number, seat: number) => void |
|
|
Improve this Doc
View Source
connectionComplete
Declaration
connectionComplete: () => void
Property Value
Type |
Description |
() => void |
|
|
Improve this Doc
View Source
consoleCommand
Declaration
consoleCommand: (name: string, ...args: string[]) => void
Property Value
Type |
Description |
(name: string, ...args: string[]) => void |
|
|
Improve this Doc
View Source
disconnect
Declaration
Property Value
Type |
Description |
() => void |
|
|
Improve this Doc
View Source
enteredVehicle
Declaration
enteredVehicle: (vehicle: Vehicle, seat: number) => void
Property Value
Type |
Description |
(vehicle: Vehicle, seat: number) => void |
|
|
Improve this Doc
View Source
gameEntityCreate
Declaration
gameEntityCreate: (entity: Entity) => void
Property Value
Type |
Description |
(entity: Entity) => void |
|
|
Improve this Doc
View Source
gameEntityDestroy
Declaration
gameEntityDestroy: (entity: Entity) => void
Property Value
Type |
Description |
(entity: Entity) => void |
|
|
Improve this Doc
View Source
keydown
Declaration
keydown: (key: KeyCode) => void
Property Value
Type |
Description |
(key: KeyCode) => void |
|
|
Improve this Doc
View Source
keyup
Declaration
keyup: (key: KeyCode) => void
Property Value
Type |
Description |
(key: KeyCode) => void |
|
|
Improve this Doc
View Source
leftVehicle
Declaration
leftVehicle: (vehicle: Vehicle, seat: number) => void
Property Value
Type |
Description |
(vehicle: Vehicle, seat: number) => void |
|
|
Improve this Doc
View Source
startEnteringVehicle
Declaration
startEnteringVehicle: (vehicle: Vehicle, seat: number, player: Player) => boolean | void
Property Value
Type |
Description |
(vehicle: Vehicle, seat: number, player: Player) => boolean | void |
|
|
Improve this Doc
View Source
startLeavingVehicle
Declaration
startLeavingVehicle: (vehicle: Vehicle, seat: number, player: Player) => boolean | void
Property Value
Type |
Description |
(vehicle: Vehicle, seat: number, player: Player) => boolean | void |
|
|
Improve this Doc
View Source
removeEntity
Declaration
removeEntity: (object: Entity) => void
Property Value
Type |
Description |
(object: Entity) => void |
|
|
Improve this Doc
View Source
resourceStart
Declaration
resourceStart: (errored: boolean) => void
Property Value
Type |
Description |
(errored: boolean) => void |
|
|
Improve this Doc
View Source
resourceStop
Declaration
Property Value
Type |
Description |
() => void |
|
|
Improve this Doc
View Source
resourceError
Declaration
resourceError: (error: Error, file: string, line: number, stackTrace: string) => void
Property Value
Type |
Description |
(error: Error, file: string, line: number, stackTrace: string) => void |
|
|
Improve this Doc
View Source
Declaration
syncedMetaChange: (entity: Entity, key: string, value: any, oldValue: any) => void
Property Value
Type |
Description |
(entity: Entity, key: string, value: any, oldValue: any) => void |
|
|
Improve this Doc
View Source
Declaration
streamSyncedMetaChange: (object: BaseObject, key: string, value: any, oldValue: any) => void
Property Value
Type |
Description |
(object: BaseObject, key: string, value: any, oldValue: any) => void |
|
|
Improve this Doc
View Source
Declaration
globalMetaChange: (key: string, value: any, oldValue: any) => void
Property Value
Type |
Description |
(key: string, value: any, oldValue: any) => void |
|
|
Improve this Doc
View Source
Declaration
globalSyncedMetaChange: (key: string, value: any, oldValue: any) => void
Property Value
Type |
Description |
(key: string, value: any, oldValue: any) => void |
|
|
Improve this Doc
View Source
taskChange
Declaration
taskChange: (oldTask: number, newTask: number) => boolean | void
Property Value
Type |
Description |
(oldTask: number, newTask: number) => boolean | void |
|
|
Improve this Doc
View Source
spawned
Declaration
Property Value
Type |
Description |
() => void |
|
|
Improve this Doc
View Source
Declaration
localMetaChange: (key: string, newValue: any, oldValue: any) => void
Property Value
Type |
Description |
(key: string, newValue: any, oldValue: any) => void |
|
|
Improve this Doc
View Source
netOwnerChange
Declaration
netOwnerChange: (entity: Entity, owner: null | Player, oldOwner: null | Player) => void
Property Value
Type |
Description |
(entity: Entity, owner: null | Player, oldOwner: null | Player) => void |
|
|
Improve this Doc
View Source
windowFocusChange
Declaration
windowFocusChange: (isFocused: boolean) => void
Property Value
Type |
Description |
(isFocused: boolean) => void |
|
|
Improve this Doc
View Source
windowResolutionChange
Declaration
windowResolutionChange: (oldResolution: Vector2, newResolution: Vector2) => void
Property Value
Type |
Description |
(oldResolution: Vector2, newResolution: Vector2) => void |
|
|
Improve this Doc
View Source
playerAnimationChange
Declaration
playerAnimationChange: (target: Player, oldAnimDict: number, newAnimDict: number, oldAnimName: number, newAnimName: number) => void
Property Value
Type |
Description |
(target: Player, oldAnimDict: number, newAnimDict: number, oldAnimName: number, newAnimName: number) => void |
|
|
Improve this Doc
View Source
playerWeaponShoot
Declaration
playerWeaponShoot: (weaponHash: number, totalAmmo: number, ammoInClip: number) => void
Property Value
Type |
Description |
(weaponHash: number, totalAmmo: number, ammoInClip: number) => void |
|
|
Improve this Doc
View Source
playerWeaponChange
Declaration
playerWeaponChange: (oldWeapon: number, newWeapon: number) => void
Property Value
Type |
Description |
(oldWeapon: number, newWeapon: number) => void |
|
|
Improve this Doc
View Source
baseObjectCreate
Declaration
baseObjectCreate: (baseObject: BaseObject) => void
Property Value
Type |
Description |
(baseObject: BaseObject) => void |
|
|
Improve this Doc
View Source
baseObjectRemove
Declaration
baseObjectRemove: (baseObject: BaseObject) => void
Property Value
Type |
Description |
(baseObject: BaseObject) => void |
|
|
Improve this Doc
View Source
weaponDamage
Declaration
weaponDamage: (target: Entity, weaponHash: number, damage: number, offset: Vector3, bodyPart: BodyPart, sourceEntity: Entity) => number | boolean | void
Property Value
Type |
Description |
(target: Entity, weaponHash: number, damage: number, offset: Vector3, bodyPart: BodyPart, sourceEntity: Entity) => number | boolean | void |
|
|
Improve this Doc
View Source
worldObjectPositionChange
Declaration
worldObjectPositionChange: (object: WorldObject, oldPosition: Vector3) => void
Property Value
Type |
Description |
(object: WorldObject, oldPosition: Vector3) => void |
|
|
Improve this Doc
View Source
worldObjectStreamIn
Declaration
worldObjectStreamIn: (object: WorldObject) => void
Property Value
Type |
Description |
(object: WorldObject) => void |
|
|
Improve this Doc
View Source
worldObjectStreamOut
Declaration
worldObjectStreamOut: (object: WorldObject) => void
Property Value
Type |
Description |
(object: WorldObject) => void |
|
|
Improve this Doc
View Source
Declaration
metaChange: (target: BaseObject, key: string, value: any, oldValue: any) => void
Property Value
Type |
Description |
(target: BaseObject, key: string, value: any, oldValue: any) => void |
|
|
Improve this Doc
View Source
entityEnterColshape
Declaration
entityEnterColshape: (colshape: Colshape, entity: Entity) => void
Property Value
Type |
Description |
(colshape: Colshape, entity: Entity) => void |
|
|
Improve this Doc
View Source
entityLeaveColshape
Declaration
entityLeaveColshape: (colshape: Colshape, entity: Entity) => void
Property Value
Type |
Description |
(colshape: Colshape, entity: Entity) => void |
|
|
Improve this Doc
View Source
entityHitEntity
Declaration
entityHitEntity: (damager: Entity, target: Entity, weaponHash: number) => void
Property Value
Type |
Description |
(damager: Entity, target: Entity, weaponHash: number) => void |
|
|
Improve this Doc
View Source
playerBulletHit
Declaration
playerBulletHit: (weaponHash: number, victim: Entity, position: Vector3) => void
Property Value
Type |
Description |
(weaponHash: number, victim: Entity, position: Vector3) => void |
|
|
Improve this Doc
View Source
voiceConnection
Declaration
voiceConnection: (state: VoiceConnectionState) => void
Property Value
Type |
Description |
(state: VoiceConnectionState) => void |
|
|
Improve this Doc
View Source
playerStartTalking
Declaration
playerStartTalking: (target: Player) => void
Property Value
Type |
Description |
(target: Player) => void |
|
|
Improve this Doc
View Source
playerStopTalking
Declaration
playerStopTalking: (target: Player) => void
Property Value
Type |
Description |
(target: Player) => void |
|