Skip to content

playerLeftCheckpoint

Tells your gamemode that a player went out of one of your checkpoints, died in it, or it stopped being for them (hidden, or moved to another interior or virtual world). None comes when the checkpoint is destroyed or the player leaves the server: listen to scriptMarkerDestroyed and playerDisconnected for those.

Renamed in 0.28 from checkpointLeave; see renamed names.

server.on("playerLeftCheckpoint", ({ player, checkpoint }) => void)
Name Type Description
player PlayerSnapshot The player.
checkpoint Checkpoint The checkpoint, from checkpoints.create.
gamemodes/my-mode.ts
import { screen, server } from "nativemp";
server.on("playerLeftCheckpoint", ({ player }) => {
screen.showGameText("~r~Come back!", { player, durationMs: 1000, style: 3 });
});