SixL client API / world-entities / CheckpointMp
Interface: CheckpointMp
A checkpoint: a ring in the world with a radius, one that the server created for this client or one a script made with mp.checkpoints.new.
Remarks
Drawn by SixL's overlay: the ring, its radius, colour and the way it points (its direction, or towards its destination). The properties of a checkpoint the server made are the server's: assigning them changes nothing.
Example
mp.checkpoints.forEach((cp) => mp.console.logInfo(String(cp.radius)));
Properties
position
position: Vector3
The checkpoint's position, in metres.
Example
const where = checkpoint.position;
radius
radius: number
The checkpoint's radius, in metres.
Example
const size = checkpoint.radius;
visible
visible: boolean
Whether the checkpoint is shown. A hidden checkpoint is not drawn.
Example
if (checkpoint.visible) { }
Methods
destroy()
destroy(): void
Removes a checkpoint a script made. Does nothing for a checkpoint the server made.
Returns
void
Example
checkpoint.destroy();