Skip to content

mapEdits.restore

Cancels one map edit. Overlapping edits still apply to each affected object.

mapEdits.restore(id: number): Promise<ActionResult>
Name Type Description
id number The ID from mapEdits.hide.

An ActionResult. An unknown edit returns map-edit-not-found.

gamemodes/my-mode.ts
import { mapEdits } from "nativemp";
for (const edit of mapEdits.listAll()) await mapEdits.restore(edit.id);