players.clearRaceCheckpoint
Takes a player’s race checkpoint and its radar blip away, or everyone’s.
Signature
Section titled “Signature”players.clearRaceCheckpoint(player: PlayerTarget): Promise<ActionResult>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
player |
PlayerTarget |
The player, or their ID; 0 for everyone. |
Returns
Section titled “Returns”An ActionResult: applied, or rejected with player-not-found.
Example
Section titled “Example”import { commands, players } from "nativemp";
commands.register("quitrace", async (player) => { await players.clearRaceCheckpoint(player);});Related
Section titled “Related”players.setRaceCheckpoint: give one
A captured Player keeps this effect bound to its connection across awaits; see Async handlers.