Skip to content

mapIcons.listAll

Returns every map icon your gamemode made, whoever can see it.

Renamed in 0.28 from mapIcons.all; see renamed names.

mapIcons.listAll(): readonly MapIcon[]

None.

A list of MapIcon records. It does not change; call it again for a newer one.

gamemodes/my-mode.ts
import { mapIcons, server } from "nativemp";
server.log(`${mapIcons.listAll().length} map icons`);