Class VirtualEntity
Inheritance
BaseObject
VirtualEntity
Inherited Members
WorldObject.deleteMeta
WorldObject.hasMeta
WorldObject.getMeta
WorldObject.setMeta
WorldObject.deleteSyncedMeta
WorldObject.setSyncedMeta
WorldObject.type
WorldObject.valid
WorldObject.id
WorldObject.destroy
WorldObject.getMetaDataKeys
WorldObject.getSyncedMeta
WorldObject.hasSyncedMeta
WorldObject.getSyncedMetaKeys
WorldObject.refCount
Package: @altmp/altv-types
Syntax
class VirtualEntity extends WorldObject
Constructors
|
Improve this Doc
View Source
VirtualEntity(VirtualEntityGroup, Vector3, number, Record<string, any>)
Declaration
public VirtualEntity(group: VirtualEntityGroup, position: Vector3, streamingDistance: number, data?: Record<string, any>): VirtualEntity
Parameters
Properties
|
Improve this Doc
View Source
all
Declaration
public readonly static all: readonly VirtualEntity[]
Property Value
|
Improve this Doc
View Source
group
Declaration
public readonly group: VirtualEntityGroup
Property Value
|
Improve this Doc
View Source
streamingDistance
Declaration
public readonly streamingDistance: number
Property Value
|
Improve this Doc
View Source
visible
Declaration
Property Value
Methods
|
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 | ICustomVirtualEntityStreamSyncedMeta[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
|
Improve this Doc
View Source
Declaration
public getStreamSyncedMetaKeys(): readonly string[]
Returns
Type |
Description |
readonly string[] |
|
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomVirtualEntityStreamSyncedMeta, K, unknown, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta<K extends never>(key: K, value: ICustomVirtualEntityStreamSyncedMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomVirtualEntityStreamSyncedMeta, K, V, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta(values: MetaValues<ICustomVirtualEntityStreamSyncedMeta>): 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 |
|