playerEnteredRaceCheckpoint
Tells your gamemode that a player reached the race checkpoint players.setRaceCheckpoint
gave them. A fast car that passed through it between two position updates counts too. Set the next checkpoint here.
Renamed in 0.28 from raceCheckpointEnter; see renamed names.
Signature
Section titled “Signature”server.on("playerEnteredRaceCheckpoint", ({ player }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
Example
Section titled “Example”import { screen, server } from "nativemp";
server.on("playerEnteredRaceCheckpoint", ({ player }) => { screen.showGameText("~g~Checkpoint!", { player, durationMs: 1000, style: 3 });});Related
Section titled “Related”playerLeftRaceCheckpoint: out of it againplayers.setRaceCheckpoint: give one