playerLeftRaceCheckpoint
Tells your gamemode when a player goes out of its race checkpoint again. A car that passed through one between two position updates
gets playerEnteredRaceCheckpoint and this one together. A checkpoint replaced or
cleared in the meantime sends none.
Renamed in 0.28 from raceCheckpointLeave; see renamed names.
Signature
Section titled “Signature”server.on("playerLeftRaceCheckpoint", ({ player }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The player. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("playerLeftRaceCheckpoint", ({ player }) => server.log(`${player.name} passed a checkpoint`));Related
Section titled “Related”playerEnteredRaceCheckpoint: into it