ImportMap
Brings an export into the map - merged beside what is there, or replacing it.
"merge" adds every record of the export as a new one and its layers (an area whose name the map already holds is left out) - a
market built on one server added to another’s map. "replace" makes a backup of the map first, then the map is the export, every
record under its own id - so the same export gives the same fingerprint (/map hash) on every server that imports it; the run-only
records go too, and every player’s game draws the new map at once. Shapes and prefabs the export carries come along. Admins:
/map import <name> merge|replace.
Syntax
Section titled “Syntax”ImportMap(name [, mode])| Parameter | Type | |
|---|---|---|
name |
string | the export’s name (GetMapExports) |
mode |
string | "merge" (the default) or "replace" (optional) |
Returns
Section titled “Returns”boolean, string - true and what came in, or false and the reason (no such export, another level’s, a newer format)
Example
Section titled “Example”local ok, what = ImportMap("market-2026", "merge")Log(what)See also
Section titled “See also”ExportMap · BackupMap · the The server’s map group of the index
