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.
Signature
Section titled “Signature”server.on("scriptMapEditCreated", ({ edit }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
edit |
ScriptMapEdit |
A stock map edit was created. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("scriptMapEditCreated", ({ edit }) => { server.log(`Object editing event for ID ${edit.id}`);});