Class VirtualEntity
Inheritance
BaseObject
VirtualEntity
Inherited Members
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
streamedIn
Declaration
public readonly static streamedIn: readonly VirtualEntity[]
Property Value
|
Improve this Doc
View Source
group
Declaration
public readonly group: VirtualEntityGroup
Property Value
|
Improve this Doc
View Source
isStreamedIn
Declaration
public readonly isStreamedIn: boolean
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[] |
|