Skip to main content

IServerEvent

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

clientDeleteObject

clientDeleteObject: (player: Player) => boolean | void

clientRequestObject

clientRequestObject: (player: Player, model: number, position: Vector3) => boolean | void

connectionQueueAdd

connectionQueueAdd: (connectionInfo: IConnectionInfo) => void

connectionQueueRemove

connectionQueueRemove: (connectionInfo: IConnectionInfo) => void

consoleCommand

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

entityEnterColshape

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

entityLeaveColshape

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

explosion

explosion: (source: Player, type: ExplosionType, pos: Vector3, fx: number, target: null | Entity) => boolean | void

givePedScriptedTask

givePedScriptedTask: (source: Player, target: Ped, task: number) => boolean | void

globalMetaChange

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

globalSyncedMetaChange

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

localMetaChange

localMetaChange: (player: Player, 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

pedDamage

pedDamage: (ped: Ped, attacker: null | Entity, healthDamage: number, armourDamage: number, weapon: number) => boolean | void

pedDeath

pedDeath: (ped: Ped, killer: null | Entity, weaponHash: number) => boolean | void

pedHeal

pedHeal: (ped: Ped, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number) => boolean | void

playerAnimationChange

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

playerChangedVehicleSeat

playerChangedVehicleSeat: (player: Player, vehicle: Vehicle, oldSeat: number, seat: number) => void

playerConnect

playerConnect: (player: Player) => void

playerConnectDenied

playerConnectDenied: (reason: ConnectDeniedReason, name: string, ip: string, passwordHash: number, isDebug: boolean, branch: string, version: number, cdnURL: string, discordId: number) => void

playerDamage

playerDamage: (victim: Player, attacker: null | Entity, healthDamage: number, armourDamage: number, weaponHash: number) => void

playerDeath

playerDeath: (victim: Player, killer: null | Entity, weaponHash: number) => void

playerDimensionChange

playerDimensionChange: (player: Player, oldDimension: number, newDimension: number) => void

playerDisconnect

playerDisconnect: (player: Player, reason: string) => void

playerEnteredVehicle

playerEnteredVehicle: (player: Player, vehicle: Vehicle, seat: number) => void

playerEnteringVehicle

playerEnteringVehicle: (player: Player, vehicle: Vehicle, seat: number) => void

playerHeal

playerHeal: (player: Player, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number) => void

playerInteriorChange

playerInteriorChange: (player: Player, oldInterior: number, newInterior: number) => void

playerLeftVehicle

playerLeftVehicle: (player: Player, vehicle: Vehicle, seat: number) => void

playerRequestControl

playerRequestControl: (player: Player, target: Entity) => boolean | void

playerSpawn

playerSpawn: (player: Player) => void

playerWeaponChange

playerWeaponChange: (player: Player, oldWeapon: number, weapon: number) => void

removeEntity

removeEntity: (object: Entity) => void

requestSyncedScene

requestSyncedScene: (source: Player, sceneID: number) => boolean | void

resourceError

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

resourceStart

resourceStart: (errored: boolean) => void

resourceStop

resourceStop: () => void

serverStarted

serverStarted: () => void

startFire

startFire: (player: Player, fires: IFireInfo[]) => boolean | void

startProjectile

startProjectile: (player: Player, pos: Vector3, dir: Vector3, ammoHash: number, weaponHash: number) => boolean | void

startSyncedScene

startSyncedScene: (source: Player, sceneID: number, startPos: Vector3, startRot: Vector3, animDictHash: number, entityAnimPairs: { animHash: number; entity: BaseObject }[]) => boolean | void

stopSyncedScene

stopSyncedScene: (source: Player, sceneID: number) => boolean | void

streamSyncedMetaChange

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

syncedMetaChange

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

updateSyncedScene

updateSyncedScene: (source: Player, startRate: number, sceneID: number) => boolean | void

vehicleAttach

vehicleAttach: (vehicle: Vehicle, attachedVehicle: Vehicle) => void

vehicleDamage

vehicleDamage: (vehicle: Vehicle, attacker: null | Entity, bodyHealthDamage: number, additionalBodyHealthDamage: number, engineHealthDamage: number, petrolTankDamage: number, weapon: number) => void

vehicleDestroy

vehicleDestroy: (vehicle: Vehicle) => void

vehicleDetach

vehicleDetach: (vehicle: Vehicle, detachedVehicle: Vehicle) => void

vehicleHorn

vehicleHorn: (vehicle: Vehicle, player: Player, state: boolean) => boolean | void

vehicleSiren

vehicleSiren: (vehicle: Vehicle, state: boolean) => void

voiceConnection

voiceConnection: (state: VoiceConnectionState) => void

weaponDamage

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