Skip to content

checkpoints.destroy

Removes one of your checkpoints for everyone. Its ID is not used again while the server runs.

checkpoints.destroy(id: number): Promise<ActionResult>
Name Type Description
id number The ID from checkpoints.create.

A promise of an ActionResult: applied, or rejected with marker-not-found for an ID that is not one of your checkpoints.

gamemodes/my-mode.ts
import { checkpoints } from "nativemp";
for (const marker of checkpoints.listAll()) await checkpoints.destroy(marker.id);