Skip to content

mapEdits.listAll

Lists the stock map edits owned by your gamemode.

mapEdits.listAll(): readonly ScriptMapEdit[]

None.

An array of ScriptMapEdit snapshots.

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