Class Checkpoint
Inheritance
BaseObject
Checkpoint
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 Checkpoint extends WorldObject
Constructors
|
Improve this Doc
View Source
Checkpoint(CheckpointType, IVector3, IVector3, number, number, RGBA, RGBA, number)
Declaration
Checkpoint(type: CheckpointType, pos: IVector3, nextPos: IVector3, radius: number, height: number, rgbColor: RGBA, iconColor: RGBA, streamingDistance: number): Checkpoint
Parameters
Properties
|
Improve this Doc
View Source
checkpointType
Declaration
public checkpointType: CheckpointType
Property Value
|
Improve this Doc
View Source
nextPos
Declaration
Property Value
|
Improve this Doc
View Source
radius
Declaration
Property Value
|
Improve this Doc
View Source
height
Declaration
Property Value
|
Improve this Doc
View Source
color
Declaration
Property Value
|
Improve this Doc
View Source
iconColor
Declaration
Property Value
|
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
isStreamedIn
Declaration
public readonly isStreamedIn: boolean
Property Value
|
Improve this Doc
View Source
visible
Declaration
Property Value
|
Improve this Doc
View Source
scriptID
Declaration
public readonly scriptID: number
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
getByScriptID(number)
Declaration
public static getByScriptID(scriptID: number): null | Checkpoint
Parameters
Type |
Name |
Description |
number |
scriptID |
|
Returns
|
Improve this Doc
View Source
isEntityIn(Entity)
Declaration
public isEntityIn(entity: Entity): boolean
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
|
Improve this Doc
View Source
isPointIn(IVector3)
Declaration
public isPointIn(pos: IVector3): boolean
Parameters
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 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 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<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomCheckpointMeta, K, V, void>): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta(values: MetaValues<ICustomCheckpointMeta>): void
Parameters