Skip to content

scriptMapEditCreated

Tells your gamemode that it added an edit to hide stock map objects. The edit is available in mapEdits.listAll. Edits during gamemode startup update the list without calling the handler.

server.on("scriptMapEditCreated", ({ edit }) => void)
Name Type Description
edit ScriptMapEdit A stock map edit was created.
gamemodes/my-mode.ts
import { server } from "nativemp";
server.on("scriptMapEditCreated", ({ edit }) => {
server.log(`Object editing event for ID ${edit.id}`);
});