Skip to content

scriptMarkerCreated

Tells your gamemode that one of its text labels, map icons, checkpoints or areas was created. Those created while your gamemode loads send none: use what create returned. textLabels, mapIcons, checkpoints and areas already list it when your handler runs.

server.on("scriptMarkerCreated", ({ 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("scriptMarkerCreated", ({ marker }) => {
server.log(`${marker.markerKind} ${marker.id} created in virtual world ${marker.virtualWorld}`);
});