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
clientDeleteObject
client
DeleteObject: (player: Player) => void | boolean
Type declaration
-
- (player: Player): void | boolean
-
Parameters
Returns void | boolean
clientRequestObject
client
RequestObject: (player: Player, model: number, position: Vector3) => void | boolean
Type declaration
-
- (player: Player, model: number, position: Vector3): void | boolean
-
Parameters
Returns void | boolean
connectionQueueAdd
connectionQueueRemove
consoleCommand
consoleCommand: (name: string, ...args: string[]) => void
Type declaration
-
- (name: string, ...args: string[]): void
-
Parameters
-
name: string
-
Rest ...args: string[]
Returns void
entityEnterColshape
entityLeaveColshape
explosion
Type declaration
-
-
Parameters
-
-
-
-
fx: number
-
target: Entity | null
Returns boolean | void
givePedScriptedTask
give
PedScriptedTask: (source: Player, target: Ped, task: number) => void | boolean
Type declaration
-
- (source: Player, target: Ped, task: number): void | boolean
-
Parameters
Returns void | boolean
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
localMetaChange
local
MetaChange: (player: Player, key: string, newValue: any, oldValue: any) => void
Type declaration
-
- (player: Player, 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
pedDamage
ped
Damage: (ped: Ped, attacker: Entity | null, healthDamage: number, armourDamage: number, weapon: number) => void | boolean
Type declaration
-
- (ped: Ped, attacker: Entity | null, healthDamage: number, armourDamage: number, weapon: number): void | boolean
-
Parameters
-
-
attacker: Entity | null
-
healthDamage: number
-
armourDamage: number
-
weapon: number
Returns void | boolean
pedDeath
ped
Death: (ped: Ped, killer: Entity | null, weaponHash: number) => void | boolean
Type declaration
-
- (ped: Ped, killer: Entity | null, weaponHash: number): void | boolean
-
Parameters
-
-
killer: Entity | null
-
weaponHash: number
Returns void | boolean
pedHeal
ped
Heal: (ped: Ped, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number) => void | boolean
Type declaration
-
- (ped: Ped, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number): void | boolean
-
Parameters
-
-
oldHealth: number
-
newHealth: number
-
oldArmour: number
-
newArmour: number
Returns void | boolean
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
playerChangedVehicleSeat
player
ChangedVehicleSeat: (player: Player, vehicle: Vehicle, oldSeat: number, seat: number) => void
Type declaration
-
- (player: Player, vehicle: Vehicle, oldSeat: number, seat: number): void
-
Parameters
-
-
-
oldSeat: number
-
seat: number
Returns void
playerConnect
player
Connect: (player: Player) => void
playerConnectDenied
player
ConnectDenied: (reason: ConnectDeniedReason, name: string, ip: string, passwordHash: number, isDebug: boolean, branch: string, version: number, cdnURL: string, discordId: number) => void
Type declaration
-
- (reason: ConnectDeniedReason, name: string, ip: string, passwordHash: number, isDebug: boolean, branch: string, version: number, cdnURL: string, discordId: number): void
-
Parameters
-
-
name: string
-
ip: string
-
passwordHash: number
-
isDebug: boolean
-
branch: string
-
version: number
-
cdnURL: string
-
discordId: number
Returns void
playerDamage
player
Damage: (victim: Player, attacker: Entity | null, healthDamage: number, armourDamage: number, weaponHash: number) => void
Type declaration
-
- (victim: Player, attacker: Entity | null, healthDamage: number, armourDamage: number, weaponHash: number): void
-
Parameters
-
-
attacker: Entity | null
-
healthDamage: number
-
armourDamage: number
-
weaponHash: number
Returns void
playerDeath
player
Death: (victim: Player, killer: Entity | null, weaponHash: number) => void
Type declaration
-
- (victim: Player, killer: Entity | null, weaponHash: number): void
-
Parameters
-
-
killer: Entity | null
-
weaponHash: number
Returns void
playerDimensionChange
player
DimensionChange: (player: Player, oldDimension: number, newDimension: number) => void
Type declaration
-
- (player: Player, oldDimension: number, newDimension: number): void
-
Parameters
-
-
oldDimension: number
-
newDimension: number
Returns void
playerDisconnect
player
Disconnect: (player: Player, reason: string) => void
Type declaration
-
- (player: Player, reason: string): void
playerEnteredVehicle
player
EnteredVehicle: (player: Player, vehicle: Vehicle, seat: number) => void
playerEnteringVehicle
player
EnteringVehicle: (player: Player, vehicle: Vehicle, seat: number) => void
playerHeal
player
Heal: (player: Player, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number) => void
Type declaration
-
- (player: Player, oldHealth: number, newHealth: number, oldArmour: number, newArmour: number): void
-
Parameters
-
-
oldHealth: number
-
newHealth: number
-
oldArmour: number
-
newArmour: number
Returns void
playerInteriorChange
player
InteriorChange: (player: Player, oldInterior: number, newInterior: number) => void
Type declaration
-
- (player: Player, oldInterior: number, newInterior: number): void
-
Parameters
-
-
oldInterior: number
-
newInterior: number
Returns void
playerLeftVehicle
player
LeftVehicle: (player: Player, vehicle: Vehicle, seat: number) => void
playerRequestControl
player
RequestControl: (player: Player, target: Entity) => boolean | void
Type declaration
-
-
Parameters
Returns boolean | void
playerSpawn
player
Spawn: (player: Player) => void
playerWeaponChange
player
WeaponChange: (player: Player, oldWeapon: number, weapon: number) => void
Type declaration
-
- (player: Player, oldWeapon: number, weapon: number): void
-
Parameters
-
-
oldWeapon: number
-
weapon: number
Returns void
removeEntity
remove
Entity: (object: Entity) => void
requestSyncedScene
request
SyncedScene: (source: Player, sceneID: number) => void | boolean
Type declaration
-
- (source: Player, sceneID: number): void | boolean
-
Parameters
Returns void | boolean
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
serverStarted
serverStarted: () => void
startFire
Type declaration
-
-
Parameters
Returns boolean | void
startProjectile
start
Projectile: (player: Player, pos: Vector3, dir: Vector3, ammoHash: number, weaponHash: number) => boolean | void
Type declaration
-
-
Parameters
-
-
-
-
ammoHash: number
-
weaponHash: number
Returns boolean | void
startSyncedScene
start
SyncedScene: (source: Player, sceneID: number, startPos: Vector3, startRot: Vector3, animDictHash: number, entityAnimPairs: { animHash: number; entity: BaseObject }[]) => void | boolean
Type declaration
-
- (source: Player, sceneID: number, startPos: Vector3, startRot: Vector3, animDictHash: number, entityAnimPairs: { animHash: number; entity: BaseObject }[]): void | boolean
-
Parameters
-
-
sceneID: number
-
-
-
animDictHash: number
-
entityAnimPairs: { animHash: number; entity: BaseObject }[]
Returns void | boolean
stopSyncedScene
stop
SyncedScene: (source: Player, sceneID: number) => void | boolean
Type declaration
-
- (source: Player, sceneID: number): void | boolean
-
Parameters
Returns void | boolean
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
updateSyncedScene
update
SyncedScene: (source: Player, startRate: number, sceneID: number) => void | boolean
Type declaration
-
- (source: Player, startRate: number, sceneID: number): void | boolean
-
Parameters
-
-
startRate: number
-
sceneID: number
Returns void | boolean
vehicleAttach
vehicleDamage
vehicle
Damage: (vehicle: Vehicle, attacker: Entity | null, bodyHealthDamage: number, additionalBodyHealthDamage: number, engineHealthDamage: number, petrolTankDamage: number, weapon: number) => void
Type declaration
-
- (vehicle: Vehicle, attacker: Entity | null, bodyHealthDamage: number, additionalBodyHealthDamage: number, engineHealthDamage: number, petrolTankDamage: number, weapon: number): void
-
Parameters
-
-
attacker: Entity | null
-
bodyHealthDamage: number
-
additionalBodyHealthDamage: number
-
engineHealthDamage: number
-
petrolTankDamage: number
-
weapon: number
Returns void
vehicleDestroy
vehicle
Destroy: (vehicle: Vehicle) => void
vehicleDetach
vehicleHorn
vehicle
Horn: (vehicle: Vehicle, player: Player, state: boolean) => boolean | void
Type declaration
-
- (vehicle: Vehicle, player: Player, state: boolean): boolean | void
-
Parameters
Returns boolean | void
vehicleSiren
vehicle
Siren: (vehicle: Vehicle, state: boolean) => void
Type declaration
-
- (vehicle: Vehicle, state: boolean): void
voiceConnection
weaponDamage
weapon
Damage: (source: Player, target: Entity, weaponHash: number, damage: number, offset: Vector3, bodyPart: BodyPart) => number | boolean | void
Type declaration
-
-
Parameters
-
-
-
weaponHash: number
-
damage: number
-
-
Returns number | boolean | void
Triggers if player deletes a object of task.