Class Vehicle
Inheritance
BaseObject
Vehicle
Inherited Members
Entity.type
Entity.valid
Entity.id
Entity.destroy
Entity.getMetaDataKeys
Entity.refCount
Package: @altmp/altv-types
Syntax
class Vehicle extends Entity
Constructors
|
Improve this Doc
View Source
Vehicle(string | number, number, number, number, number, number, number, number)
Declaration
Vehicle(model: string | number, x: number, y: number, z: number, rx: number, ry: number, rz: number, streamingDistance?: number): Vehicle
Parameters
Type |
Name |
Description |
string | number |
model |
|
number |
x |
|
number |
y |
|
number |
z |
|
number |
rx |
|
number |
ry |
|
number |
rz |
|
number |
streamingDistance |
|
|
Improve this Doc
View Source
Vehicle(string | number, IVector3, IVector3, number)
Declaration
Vehicle(model: string | number, pos: IVector3, rot: IVector3, streamingDistance?: number): Vehicle
Parameters
Type |
Name |
Description |
string | number |
model |
|
IVector3 |
pos |
|
IVector3 |
rot |
|
number |
streamingDistance |
|
Properties
|
Improve this Doc
View Source
all
Declaration
public readonly static all: readonly Vehicle[]
Property Value
Type |
Description |
readonly Vehicle[] |
|
|
Improve this Doc
View Source
count
Declaration
public readonly static count: number
Property Value
|
Improve this Doc
View Source
activeRadioStation
Declaration
public activeRadioStation: RadioStation
Property Value
|
Improve this Doc
View Source
bodyAdditionalHealth
Declaration
public bodyAdditionalHealth: number
Property Value
|
Improve this Doc
View Source
bodyHealth
Declaration
public bodyHealth: number
Property Value
|
Improve this Doc
View Source
customPrimaryColor
Declaration
public customPrimaryColor: RGBA
Property Value
|
Improve this Doc
View Source
customSecondaryColor
Declaration
public customSecondaryColor: RGBA
Property Value
|
Improve this Doc
View Source
customTires
Declaration
public customTires: boolean
Property Value
|
Improve this Doc
View Source
darkness
Declaration
Property Value
|
Improve this Doc
View Source
dashboardColor
Declaration
public dashboardColor: number
Property Value
|
Improve this Doc
View Source
daylightOn
Declaration
public readonly daylightOn: boolean
Property Value
|
Improve this Doc
View Source
destroyed
Declaration
public readonly destroyed: boolean
Property Value
|
Improve this Doc
View Source
dirtLevel
Declaration
Property Value
|
Improve this Doc
View Source
driver
Declaration
public readonly driver: null | Player
Property Value
Type |
Description |
null | Player |
|
|
Improve this Doc
View Source
passengers
Declaration
public readonly passengers: IVehiclePassenger
Property Value
Type |
Description |
IVehiclePassenger |
|
|
Improve this Doc
View Source
engineHealth
Declaration
public engineHealth: number
Property Value
|
Improve this Doc
View Source
engineOn
Declaration
Property Value
|
Improve this Doc
View Source
flamethrowerActive
Declaration
public readonly flamethrowerActive: boolean
Property Value
|
Improve this Doc
View Source
handbrakeActive
Declaration
public readonly handbrakeActive: boolean
Property Value
|
Improve this Doc
View Source
hasArmoredWindows
Declaration
public readonly hasArmoredWindows: boolean
Property Value
|
Improve this Doc
View Source
headlightColor
Declaration
public headlightColor: number
Property Value
|
Improve this Doc
View Source
interiorColor
Declaration
public interiorColor: number
Property Value
|
Improve this Doc
View Source
lightsMultiplier
Declaration
public lightsMultiplier: number
Property Value
|
Improve this Doc
View Source
livery
Declaration
Property Value
|
Improve this Doc
View Source
lockState
Declaration
public lockState: VehicleLockState
Property Value
|
Improve this Doc
View Source
manualEngineControl
Declaration
public manualEngineControl: boolean
Property Value
|
Improve this Doc
View Source
modKit
Declaration
Property Value
|
Improve this Doc
View Source
modKitsCount
Declaration
public readonly modKitsCount: number
Property Value
|
Improve this Doc
View Source
neon
Declaration
public neon: IVehicleNeon
Property Value
|
Improve this Doc
View Source
neonColor
Declaration
Property Value
|
Improve this Doc
View Source
nightlightOn
Declaration
public readonly nightlightOn: boolean
Property Value
|
Improve this Doc
View Source
numberPlateIndex
Declaration
public numberPlateIndex: NumberPlateStyle
Property Value
|
Improve this Doc
View Source
numberPlateText
Declaration
public numberPlateText: string
Property Value
|
Improve this Doc
View Source
pearlColor
Declaration
public pearlColor: number
Property Value
|
Improve this Doc
View Source
petrolTankHealth
Declaration
public petrolTankHealth: number
Property Value
|
Improve this Doc
View Source
primaryColor
Declaration
public primaryColor: number
Property Value
|
Improve this Doc
View Source
repairsCount
Declaration
public readonly repairsCount: number
Property Value
|
Improve this Doc
View Source
roofLivery
Declaration
public roofLivery: number
Property Value
|
Improve this Doc
View Source
roofState
Declaration
public roofState: boolean
Property Value
|
Improve this Doc
View Source
roofClosed
Declaration
public roofClosed: boolean
Property Value
|
Improve this Doc
View Source
secondaryColor
Declaration
public secondaryColor: number
Property Value
|
Improve this Doc
View Source
sirenActive
Declaration
public sirenActive: boolean
Property Value
|
Improve this Doc
View Source
tireSmokeColor
Declaration
public tireSmokeColor: RGBA
Property Value
|
Improve this Doc
View Source
wheelColor
Declaration
public wheelColor: number
Property Value
|
Improve this Doc
View Source
wheelsCount
Declaration
public readonly wheelsCount: number
Property Value
|
Improve this Doc
View Source
wheelType
Declaration
public readonly wheelType: number
Property Value
|
Improve this Doc
View Source
frontWheels
Declaration
public readonly frontWheels: number
Property Value
|
Improve this Doc
View Source
rearWheels
Declaration
public readonly rearWheels: number
Property Value
|
Improve this Doc
View Source
windowTint
Declaration
public windowTint: WindowTint
Property Value
|
Improve this Doc
View Source
attached
Declaration
public readonly attached: null | Vehicle
Property Value
|
Improve this Doc
View Source
attachedTo
Declaration
public readonly attachedTo: null | Vehicle
Property Value
|
Improve this Doc
View Source
velocity
Declaration
public readonly velocity: Vector3
Property Value
|
Improve this Doc
View Source
driftModeEnabled
Declaration
public driftModeEnabled: boolean
Property Value
|
Improve this Doc
View Source
quaternion
Declaration
public quaternion: Quaternion
Property Value
|
Improve this Doc
View Source
isMissionTrain
Declaration
public isMissionTrain: boolean
Property Value
|
Improve this Doc
View Source
trainTrackId
Declaration
public trainTrackId: number
Property Value
|
Improve this Doc
View Source
trainEngineId
Declaration
public readonly trainEngineId: null | Vehicle
Property Value
|
Improve this Doc
View Source
trainConfigIndex
Declaration
public trainConfigIndex: number
Property Value
|
Improve this Doc
View Source
trainDistanceFromEngine
Declaration
public trainDistanceFromEngine: number
Property Value
|
Improve this Doc
View Source
isTrainEngine
Declaration
public isTrainEngine: boolean
Property Value
|
Improve this Doc
View Source
isTrainCaboose
Declaration
public isTrainCaboose: boolean
Property Value
|
Improve this Doc
View Source
trainPassengerCarriages
Declaration
public trainPassengerCarriages: boolean
Property Value
|
Improve this Doc
View Source
trainDirection
Declaration
public trainDirection: boolean
Property Value
|
Improve this Doc
View Source
trainRenderDerailed
Declaration
public trainRenderDerailed: boolean
Property Value
|
Improve this Doc
View Source
trainForceDoorsOpen
Declaration
public trainForceDoorsOpen: boolean
Property Value
|
Improve this Doc
View Source
trainCruiseSpeed
Declaration
public trainCruiseSpeed: number
Property Value
|
Improve this Doc
View Source
trainCarriageConfigIndex
Declaration
public trainCarriageConfigIndex: number
Property Value
|
Improve this Doc
View Source
trainLinkedToBackwardId
Declaration
public readonly trainLinkedToBackwardId: null | Vehicle
Property Value
|
Improve this Doc
View Source
trainLinkedToForwardId
Declaration
public readonly trainLinkedToForwardId: null | Vehicle
Property Value
|
Improve this Doc
View Source
trainUnk1
Declaration
public trainUnk1: boolean
Property Value
|
Improve this Doc
View Source
trainUnk2
Declaration
public trainUnk2: boolean
Property Value
|
Improve this Doc
View Source
trainUnk3
Declaration
public trainUnk3: boolean
Property Value
|
Improve this Doc
View Source
boatAnchorActive
Declaration
public boatAnchorActive: boolean
Property Value
|
Improve this Doc
View Source
lightState
Declaration
public lightState: number
Property Value
|
Improve this Doc
View Source
hornActive
Declaration
public hornActive: boolean
Property Value
|
Improve this Doc
View Source
timedExplosionTime
Declaration
public readonly timedExplosionTime: number
Property Value
|
Improve this Doc
View Source
timedExplosionCulprit
Declaration
public readonly timedExplosionCulprit: Player
Property Value
|
Improve this Doc
View Source
hasTimedExplosion
Declaration
public readonly hasTimedExplosion: boolean
Property Value
|
Improve this Doc
View Source
rocketRefuelSpeed
Declaration
public rocketRefuelSpeed: number
Property Value
|
Improve this Doc
View Source
counterMeasureCount
Declaration
public counterMeasureCount: number
Property Value
|
Improve this Doc
View Source
scriptMaxSpeed
Declaration
public scriptMaxSpeed: number
Property Value
|
Improve this Doc
View Source
Declaration
public hybridExtraActive: boolean
Property Value
|
Improve this Doc
View Source
Declaration
public hybridExtraState: number
Property Value
|
Improve this Doc
View Source
steeringAngle
Declaration
public readonly steeringAngle: number
Property Value
|
Improve this Doc
View Source
accelerationLevel
Declaration
public readonly accelerationLevel: number
Property Value
|
Improve this Doc
View Source
brakeLevel
Declaration
public readonly brakeLevel: number
Property Value
Methods
|
Improve this Doc
View Source
getByID(number)
Declaration
public static getByID(id: number): null | Vehicle
Parameters
Type |
Name |
Description |
number |
id |
|
Returns
|
Improve this Doc
View Source
doesWheelHasTire(number)
Declaration
public doesWheelHasTire(wheelId: number): boolean
Parameters
Type |
Name |
Description |
number |
wheelId |
|
Returns
|
Improve this Doc
View Source
getAppearanceDataBase64()
Declaration
public getAppearanceDataBase64(): string
Returns
|
Improve this Doc
View Source
getArmoredWindowHealth(number)
Declaration
public getArmoredWindowHealth(windowId: number): number
Parameters
Type |
Name |
Description |
number |
windowId |
|
Returns
|
Improve this Doc
View Source
getArmoredWindowShootCount(number)
Declaration
public getArmoredWindowShootCount(windowId: number): number
Parameters
Type |
Name |
Description |
number |
windowId |
|
Returns
|
Improve this Doc
View Source
getBumperDamageLevel(VehicleBumper)
Declaration
public getBumperDamageLevel(bumperId: VehicleBumper): VehicleBumperDamage
Parameters
Returns
|
Improve this Doc
View Source
getBumperDamageLevel<T extends number, V extends number>(T)
Declaration
public getBumperDamageLevel<T extends number, V extends number>(bumperId: T): V
Parameters
Type |
Name |
Description |
T |
bumperId |
|
Returns
|
Improve this Doc
View Source
getDamageStatusBase64()
Declaration
public getDamageStatusBase64(): string
Returns
|
Improve this Doc
View Source
getDoorState(VehicleDoor)
Declaration
public getDoorState(doorId: VehicleDoor): VehicleDoorState
Parameters
Returns
|
Improve this Doc
View Source
getDoorState<T extends number, V extends number>(T)
Declaration
public getDoorState<T extends number, V extends number>(doorId: T): V
Parameters
Type |
Name |
Description |
T |
doorId |
|
Returns
|
Improve this Doc
View Source
Declaration
public getExtra(extraId: number): boolean
Parameters
Type |
Name |
Description |
number |
extraId |
|
Returns
|
Improve this Doc
View Source
getGamestateDataBase64()
Declaration
public getGamestateDataBase64(): string
Returns
|
Improve this Doc
View Source
getHealthDataBase64()
Declaration
public getHealthDataBase64(): string
Returns
|
Improve this Doc
View Source
getMod(VehicleModType)
Declaration
public getMod(modType: VehicleModType): number
Parameters
Returns
|
Improve this Doc
View Source
getMod<T extends number>(T)
Declaration
public getMod<T extends number>(modType: T): number
Parameters
Type |
Name |
Description |
T |
modType |
|
Returns
|
Improve this Doc
View Source
getModsCount(VehicleModType)
Declaration
public getModsCount(modType: VehicleModType): number
Parameters
Returns
|
Improve this Doc
View Source
getModsCount<T extends number>(T)
Declaration
public getModsCount<T extends number>(modType: T): number
Parameters
Type |
Name |
Description |
T |
modType |
|
Returns
|
Improve this Doc
View Source
getPartBulletHoles(VehiclePart)
Declaration
public getPartBulletHoles(partId: VehiclePart): number
Parameters
Returns
|
Improve this Doc
View Source
getPartBulletHoles<T extends number>(T)
Declaration
public getPartBulletHoles<T extends number>(partId: T): number
Parameters
Type |
Name |
Description |
T |
partId |
|
Returns
|
Improve this Doc
View Source
getPartDamageLevel(VehiclePart)
Declaration
public getPartDamageLevel(partId: VehiclePart): VehiclePartDamage
Parameters
Returns
|
Improve this Doc
View Source
getPartDamageLevel<T extends number, V extends number>(T)
Declaration
public getPartDamageLevel<T extends number, V extends number>(partId: T): V
Parameters
Type |
Name |
Description |
T |
partId |
|
Returns
|
Improve this Doc
View Source
getScriptDataBase64()
Declaration
public getScriptDataBase64(): string
Returns
|
Improve this Doc
View Source
getWheelHealth(number)
Declaration
public getWheelHealth(wheelId: number): number
Parameters
Type |
Name |
Description |
number |
wheelId |
|
Returns
|
Improve this Doc
View Source
isLightDamaged(number)
Declaration
public isLightDamaged(lightId: number): boolean
Parameters
Type |
Name |
Description |
number |
lightId |
|
Returns
|
Improve this Doc
View Source
isSpecialLightDamaged(number)
Declaration
public isSpecialLightDamaged(specialLightId: number): boolean
Parameters
Type |
Name |
Description |
number |
specialLightId |
|
Returns
|
Improve this Doc
View Source
isWheelBurst(number)
Declaration
public isWheelBurst(wheelId: number): boolean
Parameters
Type |
Name |
Description |
number |
wheelId |
|
Returns
|
Improve this Doc
View Source
isWheelDetached(number)
Declaration
public isWheelDetached(wheelId: number): boolean
Parameters
Type |
Name |
Description |
number |
wheelId |
|
Returns
|
Improve this Doc
View Source
isWheelOnFire(number)
Declaration
public isWheelOnFire(wheelId: number): boolean
Parameters
Type |
Name |
Description |
number |
wheelId |
|
Returns
|
Improve this Doc
View Source
isWindowDamaged(number)
Declaration
public isWindowDamaged(windowId: number): boolean
Parameters
Type |
Name |
Description |
number |
windowId |
|
Returns
|
Improve this Doc
View Source
isWindowOpened(number)
Declaration
public isWindowOpened(windowId: number): boolean
Parameters
Type |
Name |
Description |
number |
windowId |
|
Returns
|
Improve this Doc
View Source
repair()
Declaration
|
Improve this Doc
View Source
setAppearanceDataBase64(string)
Declaration
public setAppearanceDataBase64(data: string): void
Parameters
Type |
Name |
Description |
string |
data |
|
|
Improve this Doc
View Source
setArmoredWindowHealth(number, number)
Declaration
public setArmoredWindowHealth(windowId: number, health: number): void
Parameters
Type |
Name |
Description |
number |
windowId |
|
number |
health |
|
|
Improve this Doc
View Source
setArmoredWindowShootCount(number, number)
Declaration
public setArmoredWindowShootCount(windowId: number, count: number): void
Parameters
Type |
Name |
Description |
number |
windowId |
|
number |
count |
|
|
Improve this Doc
View Source
setBumperDamageLevel(VehicleBumper, VehicleBumperDamage)
Declaration
public setBumperDamageLevel(bumperId: VehicleBumper, level: VehicleBumperDamage): void
Parameters
|
Improve this Doc
View Source
setBumperDamageLevel<T extends number, V extends number>(T, V)
Declaration
public setBumperDamageLevel<T extends number, V extends number>(bumperId: T, level: V): void
Parameters
Type |
Name |
Description |
T |
bumperId |
|
V |
level |
|
|
Improve this Doc
View Source
setDamageStatusBase64(string)
Declaration
public setDamageStatusBase64(data: string): void
Parameters
Type |
Name |
Description |
string |
data |
|
|
Improve this Doc
View Source
setDoorState(VehicleDoor, VehicleDoorState)
Declaration
public setDoorState(doorId: VehicleDoor, state: VehicleDoorState): void
Parameters
|
Improve this Doc
View Source
setDoorState<T extends number, V extends number>(T, V)
Declaration
public setDoorState<T extends number, V extends number>(doorId: T, state: V): void
Parameters
Type |
Name |
Description |
T |
doorId |
|
V |
state |
|
|
Improve this Doc
View Source
Declaration
public setExtra(extraId: number, state: boolean): void
Parameters
Type |
Name |
Description |
number |
extraId |
|
boolean |
state |
|
|
Improve this Doc
View Source
setGamestateDataBase64(string)
Declaration
public setGamestateDataBase64(data: string): void
Parameters
Type |
Name |
Description |
string |
data |
|
|
Improve this Doc
View Source
setHealthDataBase64(string)
Declaration
public setHealthDataBase64(data: string): void
Parameters
Type |
Name |
Description |
string |
data |
|
|
Improve this Doc
View Source
setLightDamaged(number, boolean)
Declaration
public setLightDamaged(lightId: number, isDamaged: boolean): void
Parameters
Type |
Name |
Description |
number |
lightId |
|
boolean |
isDamaged |
|
|
Improve this Doc
View Source
setMod(VehicleModType, number)
Declaration
public setMod(modType: VehicleModType, modId: number): void
Parameters
|
Improve this Doc
View Source
setMod<T extends number>(T, number)
Declaration
public setMod<T extends number>(modType: T, modId: number): void
Parameters
Type |
Name |
Description |
T |
modType |
|
number |
modId |
|
|
Improve this Doc
View Source
setPartBulletHoles(VehiclePart, number)
Declaration
public setPartBulletHoles(partId: VehiclePart, count: number): void
Parameters
|
Improve this Doc
View Source
setPartBulletHoles<T extends number>(T, number)
Declaration
public setPartBulletHoles<T extends number>(partId: T, count: number): void
Parameters
Type |
Name |
Description |
T |
partId |
|
number |
count |
|
|
Improve this Doc
View Source
setPartDamageLevel(VehiclePart, VehiclePartDamage)
Declaration
public setPartDamageLevel(partId: VehiclePart, level: VehiclePartDamage): void
Parameters
|
Improve this Doc
View Source
setPartDamageLevel<T extends number, V extends number>(T, V)
Declaration
public setPartDamageLevel<T extends number, V extends number>(partId: T, level: V): void
Parameters
Type |
Name |
Description |
T |
partId |
|
V |
level |
|
|
Improve this Doc
View Source
setRearWheels(number)
Declaration
public setRearWheels(wheelId: number): void
Parameters
Type |
Name |
Description |
number |
wheelId |
|
|
Improve this Doc
View Source
setScriptDataBase64(string)
Declaration
public setScriptDataBase64(data: string): void
Parameters
Type |
Name |
Description |
string |
data |
|
|
Improve this Doc
View Source
setSpecialLightDamaged(number, boolean)
Declaration
public setSpecialLightDamaged(specialLightId: number, isDamaged: boolean): void
Parameters
Type |
Name |
Description |
number |
specialLightId |
|
boolean |
isDamaged |
|
|
Improve this Doc
View Source
setWheelBurst(number, boolean)
Declaration
public setWheelBurst(wheelId: number, state: boolean): void
Parameters
Type |
Name |
Description |
number |
wheelId |
|
boolean |
state |
|
|
Improve this Doc
View Source
setWheelDetached(number, boolean)
Declaration
public setWheelDetached(wheelId: number, state: boolean): void
Parameters
Type |
Name |
Description |
number |
wheelId |
|
boolean |
state |
|
|
Improve this Doc
View Source
setWheelHasTire(number, boolean)
Declaration
public setWheelHasTire(wheelId: number, state: boolean): void
Parameters
Type |
Name |
Description |
number |
wheelId |
|
boolean |
state |
|
|
Improve this Doc
View Source
setWheelHealth(number, number)
Declaration
public setWheelHealth(wheelId: number, health: number): void
Parameters
Type |
Name |
Description |
number |
wheelId |
|
number |
health |
|
|
Improve this Doc
View Source
setWheelOnFire(number, boolean)
Declaration
public setWheelOnFire(wheelId: number, state: boolean): void
Parameters
Type |
Name |
Description |
number |
wheelId |
|
boolean |
state |
|
|
Improve this Doc
View Source
setWheels(number, number)
Declaration
public setWheels(wheelType: number, wheelId: number): void
Parameters
Type |
Name |
Description |
number |
wheelType |
|
number |
wheelId |
|
|
Improve this Doc
View Source
setWindowDamaged(number, boolean)
Declaration
public setWindowDamaged(windowId: number, isDamaged: boolean): void
Parameters
Type |
Name |
Description |
number |
windowId |
|
boolean |
isDamaged |
|
|
Improve this Doc
View Source
setWindowOpened(number, boolean)
Declaration
public setWindowOpened(windowId: number, state: boolean): void
Parameters
Type |
Name |
Description |
number |
windowId |
|
boolean |
state |
|
|
Improve this Doc
View Source
setWheelFixed(number)
Declaration
public setWheelFixed(wheelId: number): void
Parameters
Type |
Name |
Description |
number |
wheelId |
|
|
Improve this Doc
View Source
setTrainEngineId(null | Vehicle)
Declaration
public setTrainEngineId(vehicle: null | Vehicle): void
Parameters
Type |
Name |
Description |
null | Vehicle |
vehicle |
|
|
Improve this Doc
View Source
setTrainLinkedToBackwardId(null | Vehicle)
Declaration
public setTrainLinkedToBackwardId(vehicle: null | Vehicle): void
Parameters
Type |
Name |
Description |
null | Vehicle |
vehicle |
|
|
Improve this Doc
View Source
setTrainLinkedToForwardId(null | Vehicle)
Declaration
public setTrainLinkedToForwardId(vehicle: null | Vehicle): void
Parameters
Type |
Name |
Description |
null | Vehicle |
vehicle |
|
|
Improve this Doc
View Source
setSearchLightTo(Entity, boolean)
Declaration
public setSearchLightTo(entity: Entity, state: boolean): void
Parameters
Type |
Name |
Description |
Entity |
entity |
|
boolean |
state |
|
|
Improve this Doc
View Source
setTimedExplosion(boolean, Player, number)
Declaration
public setTimedExplosion(state: boolean, culprit: Player, time: number): void
Parameters
Type |
Name |
Description |
boolean |
state |
|
Player |
culprit |
|
number |
time |
|
|
Improve this Doc
View Source
getWeaponCapacity(number)
Declaration
public getWeaponCapacity(weaponIndex: number): number
Parameters
Type |
Name |
Description |
number |
weaponIndex |
|
Returns
|
Improve this Doc
View Source
setWeaponCapacity(number, number)
Declaration
public setWeaponCapacity(weaponIndex: number, capacity: number): void
Parameters
Type |
Name |
Description |
number |
weaponIndex |
|
number |
capacity |
|
|
Improve this Doc
View Source
setBadge(number, number, VehicleBadgePosition, VehicleBadgePosition, VehicleBadgePosition, VehicleBadgePosition)
Declaration
setBadge(textureDictionary: number, texture: number, pos: VehicleBadgePosition, pos2?: VehicleBadgePosition, pos3?: VehicleBadgePosition, pos4?: VehicleBadgePosition): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomVehicleMeta, K, unknown, void>): void
Parameters
Type |
Name |
Description |
K |
key |
|
InterfaceValueByKey<ICustomVehicleMeta, K, unknown, void> |
value |
|
|
Improve this Doc
View Source
Declaration
public setMeta<K extends never>(key: K, value: ICustomVehicleMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomVehicleMeta, K, V, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta(values: MetaValues<ICustomVehicleMeta>): void
Parameters
|
Improve this Doc
View Source
Declaration
public deleteMeta(key: string): void
Parameters
Type |
Name |
Description |
string |
key |
|
|
Improve this Doc
View Source
Declaration
public deleteMeta<K extends never>(key: K): void
Parameters
Type |
Name |
Description |
K |
key |
|
|
Improve this Doc
View Source
Declaration
public getMeta<K extends string>(key: Exclude<K, never>): unknown
Parameters
Type |
Name |
Description |
Exclude<K, never> |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<K extends never>(key: K): undefined | ICustomVehicleMeta[K]
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<V extends unknown>(key: string): undefined | V
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Type |
Description |
undefined | V |
|
|
Improve this Doc
View Source
Declaration
public hasMeta(key: string): boolean
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public hasMeta<K extends never>(key: K): boolean
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public setSyncedMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomVehicleSyncedMeta, K, unknown, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setSyncedMeta<K extends never>(key: K, value: ICustomVehicleSyncedMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setSyncedMeta<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomVehicleSyncedMeta, K, V, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setSyncedMeta(values: MetaValues<ICustomVehicleSyncedMeta>): void
Parameters
|
Improve this Doc
View Source
Declaration
public deleteSyncedMeta(key: string): void
Parameters
Type |
Name |
Description |
string |
key |
|
|
Improve this Doc
View Source
Declaration
public deleteSyncedMeta<K extends never>(key: K): void
Parameters
Type |
Name |
Description |
K |
key |
|
|
Improve this Doc
View Source
Declaration
public getSyncedMeta<K extends string>(key: Exclude<K, never>): unknown
Parameters
Type |
Name |
Description |
Exclude<K, never> |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getSyncedMeta<K extends never>(key: K): undefined | ICustomVehicleSyncedMeta[K]
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getSyncedMeta<V extends unknown>(key: string): undefined | V
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Type |
Description |
undefined | V |
|
|
Improve this Doc
View Source
Declaration
public hasSyncedMeta(key: string): boolean
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public hasSyncedMeta<K extends never>(key: K): boolean
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomVehicleStreamSyncedMeta, K, unknown, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta<K extends never>(key: K, value: ICustomVehicleStreamSyncedMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomVehicleStreamSyncedMeta, K, V, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta(values: MetaValues<ICustomVehicleStreamSyncedMeta>): void
Parameters
|
Improve this Doc
View Source
Declaration
public deleteStreamSyncedMeta(key: string): void
Parameters
Type |
Name |
Description |
string |
key |
|
|
Improve this Doc
View Source
Declaration
public deleteStreamSyncedMeta<K extends never>(key: K): void
Parameters
Type |
Name |
Description |
K |
key |
|
|
Improve this Doc
View Source
Declaration
public getStreamSyncedMeta<K extends string>(key: Exclude<K, never>): unknown
Parameters
Type |
Name |
Description |
Exclude<K, never> |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getStreamSyncedMeta<K extends never>(key: K): undefined | ICustomVehicleStreamSyncedMeta[K]
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getStreamSyncedMeta<V extends unknown>(key: string): undefined | V
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Type |
Description |
undefined | V |
|
|
Improve this Doc
View Source
Declaration
public hasStreamSyncedMeta(key: string): boolean
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public hasStreamSyncedMeta<K extends never>(key: K): boolean
Parameters
Type |
Name |
Description |
K |
key |
|
Returns