scriptMapEditRestored
Tells your gamemode that it removed an edit with mapEdits.restore. The edit has already left mapEdits.listAll.
Signature
Section titled “Signature”server.on("scriptMapEditRestored", ({ edit }) => void)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
edit |
ScriptMapEdit |
A stock map edit was restored. |
Example
Section titled “Example”import { server } from "nativemp";
server.on("scriptMapEditRestored", ({ edit }) => { server.log(`Object editing event for ID ${edit.id}`);});