Properties
anyResourceError
anyResourceError: (resourceName: string) => void
Type declaration
-
- (resourceName: string): void
anyResourceStart
anyResourceStart: (resourceName: string) => void
Type declaration
-
- (resourceName: string): void
anyResourceStop
anyResourceStop: (resourceName: string) => void
Type declaration
-
- (resourceName: string): void
baseObjectCreate
base
ObjectCreate: (baseObject: BaseObject) => void
baseObjectRemove
base
ObjectRemove: (baseObject: BaseObject) => void
changedVehicleSeat
changed
VehicleSeat: (vehicle: Vehicle, oldSeat: number, seat: number) => void
Type declaration
-
- (vehicle: Vehicle, oldSeat: number, seat: number): void
-
Parameters
-
-
oldSeat: number
-
seat: number
Returns void
connectionComplete
connectionComplete: () => 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
enteredVehicle
entered
Vehicle: (vehicle: Vehicle, seat: number) => void
Type declaration
-
- (vehicle: Vehicle, seat: number): void
entityEnterColshape
entityHitEntity
entity
HitEntity: (damager: Entity, target: Entity, weaponHash: number) => void
entityLeaveColshape
gameEntityCreate
game
EntityCreate: (entity: Entity) => void
gameEntityDestroy
game
EntityDestroy: (entity: Entity) => 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
keyup
leftVehicle
left
Vehicle: (vehicle: Vehicle, seat: number) => void
Type declaration
-
- (vehicle: Vehicle, seat: number): 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
meta
Change: (target: BaseObject, key: string, value: any, oldValue: any) => void
Type declaration
-
- (target: BaseObject, key: string, value: any, oldValue: any): void
-
Parameters
-
-
key: string
-
value: any
-
oldValue: any
Returns void
netOwnerChange
playerAnimationChange
player
AnimationChange: (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
-
-
oldAnimDict: number
-
newAnimDict: number
-
oldAnimName: number
-
newAnimName: number
Returns void
playerBulletHit
player
BulletHit: (weaponHash: number, victim: Entity, position: Vector3) => void
playerStartTalking
player
StartTalking: (target: Player) => void
playerStopTalking
player
StopTalking: (target: Player) => 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
remove
Entity: (object: Entity) => 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
resourceStop
resourceStop: () => void
spawned
spawned: () => void
startEnteringVehicle
start
EnteringVehicle: (vehicle: Vehicle, seat: number, player: Player) => boolean | void
Type declaration
-
-
Parameters
Returns boolean | void
startLeavingVehicle
start
LeavingVehicle: (vehicle: Vehicle, seat: number, player: Player) => boolean | void
Type declaration
-
-
Parameters
Returns boolean | void
streamSyncedMetaChange
stream
SyncedMetaChange: (object: BaseObject, key: string, value: any, oldValue: any) => void
Type declaration
-
- (object: BaseObject, key: string, value: any, oldValue: any): void
-
Parameters
-
-
key: string
-
value: any
-
oldValue: any
Returns void
syncedMetaChange
synced
MetaChange: (entity: Entity, key: string, value: any, oldValue: any) => void
Type declaration
-
- (entity: Entity, key: string, value: any, oldValue: any): void
-
Parameters
-
-
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
weaponDamage
weapon
Damage: (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
-
-
weaponHash: number
-
damage: number
-
-
-
sourceEntity: Entity
Returns number | boolean | void
windowFocusChange
windowFocusChange: (isFocused: boolean) => void
Type declaration
-
- (isFocused: boolean): void
windowResolutionChange
window
ResolutionChange: (oldResolution: Vector2, newResolution: Vector2) => void
worldObjectPositionChange
worldObjectStreamIn
worldObjectStreamOut
The seat indexes start with 1 (driver seat).