Skip to content

checkpoints.listAll

Returns every checkpoint your gamemode made, whoever can see it.

Renamed in 0.28 from checkpoints.all; see renamed names.

checkpoints.listAll(): readonly Checkpoint[]

None.

A list of Checkpoint records. It does not change; call it again for a newer one.

gamemodes/my-mode.ts
import { checkpoints, server } from "nativemp";
server.log(`${checkpoints.listAll().length} checkpoints`);