Class Checkpoint
Inheritance
BaseObject
Checkpoint
Inherited Members
Colshape.deleteSyncedMeta
Colshape.setSyncedMeta
Colshape.type
Colshape.valid
Colshape.id
Colshape.destroy
Colshape.getMetaDataKeys
Colshape.getSyncedMeta
Colshape.hasSyncedMeta
Colshape.getSyncedMetaKeys
Colshape.refCount
Package: @altmp/altv-types
Syntax
class Checkpoint extends Colshape
Constructors
|
Improve this Doc
View Source
Checkpoint(CheckpointType, number, number, number, number, number, number, number, number, number, number)
Declaration
Checkpoint(type: CheckpointType, x: number, y: number, z: number, radius: number, height: number, r: number, g: number, b: number, a: number, streamingDistance: number): Checkpoint
Parameters
Type |
Name |
Description |
CheckpointType |
type |
|
number |
x |
|
number |
y |
|
number |
z |
|
number |
radius |
|
number |
height |
|
number |
r |
|
number |
g |
|
number |
b |
|
number |
a |
|
number |
streamingDistance |
|
|
Improve this Doc
View Source
Checkpoint(CheckpointType, IVector3, number, number, RGBA, number)
Declaration
Checkpoint(type: CheckpointType, pos: IVector3, radius: number, height: number, color: RGBA, streamingDistance: number): Checkpoint
Parameters
Properties
|
Improve this Doc
View Source
streamingDistance
Declaration
public readonly streamingDistance: number
Property Value
|
Improve this Doc
View Source
all
Declaration
public readonly static all: readonly Checkpoint[]
Property Value
|
Improve this Doc
View Source
count
Declaration
public readonly static count: number
Property Value
|
Improve this Doc
View Source
visible
Declaration
Property Value
Methods
|
Improve this Doc
View Source
getByID(number)
Declaration
public static getByID(id: number): null | Checkpoint
Parameters
Type |
Name |
Description |
number |
id |
|
Returns
|
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 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 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 | ICustomCheckpointMeta[K]
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public setMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomCheckpointMeta, K, unknown, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta<K extends never>(key: K, value: ICustomCheckpointMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta(values: MetaValues<ICustomCheckpointMeta>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomCheckpointStreamSyncedMeta, K, unknown, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta<K extends never>(key: K, value: ICustomCheckpointStreamSyncedMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setStreamSyncedMeta(values: MetaValues<ICustomCheckpointStreamSyncedMeta>): 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 | ICustomCheckpointStreamSyncedMeta[K]
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
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[] |
|