Skip to content

world.setPlayerMarkerRadius

Changes how far away, in metres, a player shows on another player’s radar, for every player. A marker shows within the radius and stays until the player is 10% beyond it (110 m with the default 100 m), so it does not flicker at the edge.

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

world.setPlayerMarkerRadius(radius: number | null): Promise<ActionResult>
Name Type Description
radius number or null 0 to 6000 metres; a player exactly on the radius counts. null: no limit.

A promise of an ActionResult: applied (also when it already was this), or rejected with invalid-radius for anything else.

gamemodes/my-mode.ts
import { world } from "nativemp";
await world.setPlayerMarkerRadius(null); // no limit