Checkpoint
@vimp-mp/types 2.0.1World checkpoint handle returned by vimp.checkpoints.create.
Mutating type, position, nextPosition, radius, color, visible or dimension updates the authoritative server state and is synchronized to clients streaming the checkpoint.
interface Checkpoint extends StreamSyncedMetaMembers
color
color: MarkerColorRGBA checkpoint colour.
dimension
dimension: numberVirtual world; the checkpoint is visible only to players in the same dimension.
id
readonly id: numberServer-assigned checkpoint identifier.
isExists
readonly isExists: booleanWhether the checkpoint is still registered with the server runtime.
nextPosition
nextPosition: Vec3World position toward which the checkpoint arrow points.
position
position: Vec3Authoritative world position.
radius
radius: numberCheckpoint radius in world units.
type
type: numberGTA checkpoint type identifier.
visible
visible: booleanWhether streaming clients should draw the checkpoint.
deleteStreamSyncedMeta
deleteStreamSyncedMeta(key: string): voidDeletes key and propagates the removal to streaming clients.
destroy
destroy(): booleanDestroys this checkpoint instance.
getStreamSyncedMeta
getStreamSyncedMeta<T = unknown>(key: string): T | undefinedReturns undefined if the key is unset.
getStreamSyncedMetaKeys
getStreamSyncedMetaKeys(): Array<string>Returns all stream-synced metadata keys stored on the entity.
hasStreamSyncedMeta
hasStreamSyncedMeta(key: string): booleanReturns whether the entity has a value for key.
setStreamSyncedMeta
setStreamSyncedMeta(key: string, value: unknown): voidSet or replace one key. The value is forwarded to every player currently streaming this entity, plus included in the snapshot for any future stream-in. Use deleteStreamSyncedMeta rather than undefined when the key must be removed.