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.
Signature
Section titled “Signature”server.on("scriptMarkerUpdated", ({ 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("scriptMarkerUpdated", ({ marker }) => { if (marker.markerKind === "textLabel") server.log(`Text label ${marker.id} now reads "${marker.text}"`);});Related
Section titled “Related”scriptMarkerCreated: it was createdscriptMarkerDestroyed: it is gone- World markers