Skip to content
M2O Scripting APIScripting reference
Global objectClient APIGenerated

WorldMap

const WorldMap: object

Defined in: client/api.d.ts:755

Client controls for the in-game world map and its GPS waypoint.

clearWaypoint(): void

Removes the active GPS waypoint and its route.

void

close(): boolean

Closes the in-game world map.

boolean

True when the close request succeeded.

isOpen(): boolean

Checks whether the in-game world map is currently open.

boolean

True while the map screen is active.

open(): boolean

Opens the in-game world map.

boolean

True when the map was opened successfully.

setWaypoint(x, y): void

Sets or replaces the local GPS waypoint and computes its route. Routing uses the map’s two-dimensional road graph, so there is no Z coordinate. Placing one this way does not raise a manual placement to the server.

number

World-space X coordinate of the destination.

number

World-space Y coordinate of the destination.

void