mapIcons.listAll
Returns every map icon your gamemode made, whoever can see it.
Renamed in 0.28 from mapIcons.all; see renamed names.
Signature
Section titled “Signature”mapIcons.listAll(): readonly MapIcon[]Parameters
Section titled “Parameters”None.
Returns
Section titled “Returns”A list of MapIcon records. It does not change; call it again for a newer one.
Example
Section titled “Example”import { mapIcons, server } from "nativemp";
server.log(`${mapIcons.listAll().length} map icons`);Related
Section titled “Related”mapIcons.create: make onemapIcons.update: change itmapIcons.destroy: remove itmapIcons.getById: one of them