CheckpointManager
@vimp-mp/types 2.0.1Manages checkpoint instances in this scripting context.
ts
interface CheckpointManagerMembers
all
ts
readonly all: Array<Checkpoint>Snapshot of all currently alive checkpoints.
create
ts
create(type: number, x: number, y: number, z: number, nextX: number, nextY: number, nextZ: number, radius: number, r: number, g: number, b: number, a: number, extras?: CheckpointExtras): Checkpoint | nullCreate a checkpoint. next* coordinates point the arrow to the next checkpoint (same values as the main point for a terminal checkpoint). r, g, b, a are 0-255. Returns null if the server is full.
destroy
ts
destroy(id: number): booleanDestroys the checkpoint with id.
getById
ts
getById(id: number): Checkpoint | nullReturns the checkpoint with id, or null when it does not exist.