Interface IServerEvent
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
consoleCommand
Declaration
consoleCommand: (name: string, ...args: string[]) => void
Property Value
Type |
Description |
(name: string, ...args: string[]) => 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
explosion
Declaration
explosion: (source: Player, type: ExplosionType, pos: Vector3, fx: number, target: null | Entity) => boolean | void
Property Value
Type |
Description |
(source: Player, type: ExplosionType, pos: Vector3, fx: number, target: null | Entity) => boolean | 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
playerChangedVehicleSeat
Declaration
playerChangedVehicleSeat: (player: Player, vehicle: Vehicle, oldSeat: number, seat: number) => void
Property Value
Type |
Description |
(player: Player, vehicle: Vehicle, oldSeat: number, seat: number) => void |
|
|
Improve this Doc
View Source
playerConnect
Declaration
playerConnect: (player: Player) => void
Property Value
Type |
Description |
(player: Player) => void |
|
|
Improve this Doc
View Source
playerConnectDenied
Declaration
playerConnectDenied: (reason: ConnectDeniedReason, name: string, ip: string, passwordHash: number, isDebug: boolean, branch: string, version: number, cdnURL: string, discordId: number) => void
Property Value
Type |
Description |
(reason: ConnectDeniedReason, name: string, ip: string, passwordHash: number, isDebug: boolean, branch: string, version: number, cdnURL: string, discordId: number) => void |
|
|
Improve this Doc
View Source
playerDamage
Declaration
playerDamage: (victim: Player, attacker: null | Entity, healthDamage: number, armourDamage: number, weaponHash: number) => void
Property Value
Type |
Description |
(victim: Player, attacker: null | Entity, healthDamage: number, armourDamage: number, weaponHash: number) => void |
|
|
Improve this Doc
View Source
playerDeath
Declaration
playerDeath: (victim: Player, killer: null | Entity, weaponHash: number) => void
Property Value
Type |
Description |
(victim: Player, killer: null | Entity, weaponHash: number) => void |
|
|
Improve this Doc
View Source
playerDisconnect
Declaration
playerDisconnect: (player: Player, reason: string) => void
Property Value
Type |
Description |
(player: Player, reason: string) => void |
|
|
Improve this Doc
View Source
playerEnteredVehicle
Declaration
playerEnteredVehicle: (player: Player, vehicle: Vehicle, seat: number) => void
Property Value
Type |
Description |
(player: Player, vehicle: Vehicle, seat: number) => void |
|
|
Improve this Doc
View Source
playerEnteringVehicle
Declaration
playerEnteringVehicle: (player: Player, vehicle: Vehicle, seat: number) => void
Property Value
Type |
Description |
(player: Player, vehicle: Vehicle, seat: number) => void |
|
|
Improve this Doc
View Source
playerLeftVehicle
Declaration
playerLeftVehicle: (player: Player, vehicle: Vehicle, seat: number) => void
Property Value
Type |
Description |
(player: Player, vehicle: Vehicle, seat: number) => 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
vehicleAttach
Declaration
vehicleAttach: (vehicle: Vehicle, attachedVehicle: Vehicle) => void
Property Value
Type |
Description |
(vehicle: Vehicle, attachedVehicle: Vehicle) => void |
|
|
Improve this Doc
View Source
vehicleDestroy
Declaration
vehicleDestroy: (vehicle: Vehicle) => void
Property Value
Type |
Description |
(vehicle: Vehicle) => void |
|
|
Improve this Doc
View Source
vehicleDetach
Declaration
vehicleDetach: (vehicle: Vehicle, detachedVehicle: Vehicle) => void
Property Value
Type |
Description |
(vehicle: Vehicle, detachedVehicle: Vehicle) => void |
|
|
Improve this Doc
View Source
weaponDamage
Declaration
weaponDamage: (source: Player, target: Entity, weaponHash: number, damage: number, offset: Vector3, bodyPart: BodyPart) => number | boolean | void
Property Value
Type |
Description |
(source: Player, target: Entity, weaponHash: number, damage: number, offset: Vector3, bodyPart: BodyPart) => number | boolean | void |
|
|
Improve this Doc
View Source
startFire
Declaration
startFire: (player: Player, fires: IFireInfo[]) => boolean | void
Property Value
Type |
Description |
(player: Player, fires: IFireInfo[]) => boolean | void |
|
|
Improve this Doc
View Source
startProjectile
Declaration
startProjectile: (player: Player, pos: Vector3, dir: Vector3, ammoHash: number, weaponHash: number) => boolean | void
Property Value
Type |
Description |
(player: Player, pos: Vector3, dir: Vector3, ammoHash: number, weaponHash: number) => boolean | void |
|
|
Improve this Doc
View Source
playerWeaponChange
Declaration
playerWeaponChange: (player: Player, oldWeapon: number, weapon: number) => void
Property Value
Type |
Description |
(player: Player, oldWeapon: number, weapon: number) => void |
|
|
Improve this Doc
View Source
vehicleDamage
Declaration
vehicleDamage: (vehicle: Vehicle, attacker: null | Entity, bodyHealthDamage: number, additionalBodyHealthDamage: number, engineHealthDamage: number, petrolTankDamage: number, weapon: number) => void
Property Value
Type |
Description |
(vehicle: Vehicle, attacker: null | Entity, bodyHealthDamage: number, additionalBodyHealthDamage: number, engineHealthDamage: number, petrolTankDamage: number, weapon: number) => void |
|
|
Improve this Doc
View Source
Declaration
localMetaChange: (player: Player, key: string, newValue: any, oldValue: any) => void
Property Value
Type |
Description |
(player: Player, key: string, newValue: any, oldValue: any) => void |
|
|
Improve this Doc
View Source
connectionQueueAdd
Declaration
connectionQueueAdd: (connectionInfo: IConnectionInfo) => void
Property Value
Type |
Description |
(connectionInfo: IConnectionInfo) => void |
|
|
Improve this Doc
View Source
connectionQueueRemove
Declaration
connectionQueueRemove: (connectionInfo: IConnectionInfo) => void
Property Value
Type |
Description |
(connectionInfo: IConnectionInfo) => void |
|
|
Improve this Doc
View Source
serverStarted
Declaration
serverStarted: () => void
Property Value
Type |
Description |
() => void |
|
|
Improve this Doc
View Source
playerRequestControl
Declaration
playerRequestControl: (player: Player, target: Entity) => boolean | void
Property Value
Type |
Description |
(player: Player, target: Entity) => boolean | 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
playerInteriorChange
Declaration
playerInteriorChange: (player: Player, oldInterior: number, newInterior: number) => void
Property Value
Type |
Description |
(player: Player, oldInterior: number, newInterior: number) => void |
|
|
Improve this Doc
View Source
playerDimensionChange
Declaration
playerDimensionChange: (player: Player, oldDimension: number, newDimension: number) => void
Property Value
Type |
Description |
(player: Player, oldDimension: number, newDimension: number) => void |
|
|
Improve this Doc
View Source
vehicleHorn
Declaration
vehicleHorn: (vehicle: Vehicle, player: Player, state: boolean) => boolean | void
Property Value
Type |
Description |
(vehicle: Vehicle, player: Player, state: boolean) => boolean | void |
|
|
Improve this Doc
View Source
vehicleSiren
Declaration
vehicleSiren: (vehicle: Vehicle, state: boolean) => void
Property Value
Type |
Description |
(vehicle: Vehicle, state: boolean) => void |
|
|
Improve this Doc
View Source
playerSpawn
Declaration
playerSpawn: (player: Player) => void
Property Value
Type |
Description |
(player: Player) => 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
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
voiceConnection
Declaration
voiceConnection: (state: VoiceConnectionState) => void
Property Value
Type |
Description |
(state: VoiceConnectionState) => void |
|
|
Improve this Doc
View Source
requestSyncedScene
Declaration
requestSyncedScene: (source: Player, sceneID: number) => boolean | void
Property Value
Type |
Description |
(source: Player, sceneID: number) => boolean | void |
|
|
Improve this Doc
View Source
startSyncedScene
Declaration
startSyncedScene: (source: Player, sceneID: number, startPos: Vector3, startRot: Vector3, animDictHash: number, entityAnimPairs: { entity: BaseObject }[]) => boolean | void
Property Value
Type |
Description |
(source: Player, sceneID: number, startPos: Vector3, startRot: Vector3, animDictHash: number, entityAnimPairs: { entity: BaseObject }[]) => boolean | void |
|
|
Improve this Doc
View Source
stopSyncedScene
Declaration
stopSyncedScene: (source: Player, sceneID: number) => boolean | void
Property Value
Type |
Description |
(source: Player, sceneID: number) => boolean | void |
|
|
Improve this Doc
View Source
updateSyncedScene
Declaration
updateSyncedScene: (source: Player, startRate: number, sceneID: number) => boolean | void
Property Value
Type |
Description |
(source: Player, startRate: number, sceneID: number) => boolean | void |
|
|
Improve this Doc
View Source
clientDeleteObject
Declaration
clientDeleteObject: (player: Player) => boolean | void
Property Value
Type |
Description |
(player: Player) => boolean | void |
|
|
Improve this Doc
View Source
clientRequestObject
Declaration
clientRequestObject: (player: Player, model: number, position: Vector3) => boolean | void
Property Value
Type |
Description |
(player: Player, model: number, position: Vector3) => boolean | void |
|
|
Improve this Doc
View Source
playerHeal
Declaration
playerHeal: (player: Player, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number) => void
Property Value
Type |
Description |
(player: Player, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number) => void |
|
|
Improve this Doc
View Source
givePedScriptedTask
Declaration
givePedScriptedTask: (source: Player, target: Ped, task: number) => boolean | void
Property Value
Type |
Description |
(source: Player, target: Ped, task: number) => boolean | void |
|
|
Improve this Doc
View Source
pedDamage
Declaration
pedDamage: (ped: Ped, attacker: null | Entity, healthDamage: number, armourDamage: number, weapon: number) => boolean | void
Property Value
Type |
Description |
(ped: Ped, attacker: null | Entity, healthDamage: number, armourDamage: number, weapon: number) => boolean | void |
|
|
Improve this Doc
View Source
pedDeath
Declaration
pedDeath: (ped: Ped, killer: null | Entity, weaponHash: number) => boolean | void
Property Value
Type |
Description |
(ped: Ped, killer: null | Entity, weaponHash: number) => boolean | void |
|
|
Improve this Doc
View Source
pedHeal
Declaration
pedHeal: (ped: Ped, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number) => boolean | void
Property Value
Type |
Description |
(ped: Ped, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number) => boolean | void |
|