Skip to content

world.setPlayerMarkerMode

Changes how players show on each other’s radar, for every player, also those who join later. worldStateChanged follows.

Renamed in 0.28 from world.setMarkerMode; see renamed names.

world.setPlayerMarkerMode(mode: "off" | "global" | "streamed"): Promise<ActionResult>
Name Type Description
mode "off" | "global" | "streamed" See the modes.

A promise of an ActionResult: applied (also when the mode already was this), or rejected with invalid-mode.

gamemodes/my-mode.ts
import { world } from "nativemp";
await world.setPlayerMarkerMode("global");