Skip to content

scriptMarkerUpdated

Tells your gamemode that one of its text labels, map icons, checkpoints or areas changed: after an update, and when one of several players it is for leaves the server. textLabels, mapIcons, checkpoints and areas already hold the new one when your handler runs.

server.on("scriptMarkerUpdated", ({ marker }) => void)
Name Type Description
marker WorldMarker The text label, map icon, checkpoint or area. marker.markerKind says which.
gamemodes/my-mode.ts
import { server } from "nativemp";
server.on("scriptMarkerUpdated", ({ marker }) => {
if (marker.markerKind === "textLabel") server.log(`Text label ${marker.id} now reads "${marker.text}"`);
});