world.setPlayerMarkerRadarScale
Changes the size of the players’ blips on everyone’s radar, the game’s own blip scale. It changes only the size, not the range or the color.
Renamed in 0.28 from world.setMarkerSize; see renamed names.
Signature
Section titled “Signature”world.setPlayerMarkerRadarScale(radarScale: number): Promise<ActionResult>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
radarScale |
number |
A whole number from 1 (the game’s default) to 16. |
Returns
Section titled “Returns”A promise of an ActionResult: applied (also when it already was this), or rejected
with invalid-size for anything else.
Example
Section titled “Example”import { server, world } from "nativemp";
const result = await world.setPlayerMarkerRadarScale(2);if (result.status === "rejected") server.log(`Could not resize player markers: ${result.code}`);Related
Section titled “Related”world.getPlayerMarkerSettings: the current settingsworld.setPlayerMarkerMode: the mode