Skip to content

players.clearRaceCheckpoint

Takes a player’s race checkpoint and its radar blip away, or everyone’s.

players.clearRaceCheckpoint(player: PlayerTarget): Promise<ActionResult>
Name Type Description
player PlayerTarget The player, or their ID; 0 for everyone.

An ActionResult: applied, or rejected with player-not-found.

gamemodes/my-mode.ts
import { commands, players } from "nativemp";
commands.register("quitrace", async (player) => {
await players.clearRaceCheckpoint(player);
});

A captured Player keeps this effect bound to its connection across awaits; see Async handlers.