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.
Signature
Section titled “Signature”server.on("scriptMarkerCreated", ({ marker }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
marker |
WorldMarker |
The text label, map icon, checkpoint or area. marker.markerKind says which. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("scriptMarkerCreated", ({ marker }) => { server.log(`${marker.markerKind} ${marker.id} created in virtual world ${marker.virtualWorld}`);});Related
Section titled “Related”scriptMarkerUpdated: it changedscriptMarkerDestroyed: it is gone- World markers