Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectClient APIGenerated

MapCapture

const MapCapture: object

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

Top-down orthographic pictures of the world around a point, for a gamemode’s own map or minimap art. Only what is streamed in around the player is in the picture, so capture near where you stand. Pixel (px, py) lies (0.5 - py / size) * extent cm along the yaw’s forward from the centre and (px / size - 0.5) * extent cm along its right; at yaw 0 forward is +X and right is +Y. The PNG stays on the player’s machine.

busy(): boolean

True from a capture() that returned true until its mapCaptured.

boolean

capture(request?): boolean

Queues a capture: it renders over the next few frames, so auto-exposure can settle, and mapCaptured reports the result. False while one is already in flight. Throws a TypeError for a non-finite coordinate or a name outside the allowed characters.

MapCaptureRequest

Where to point the camera; every field is optional.

boolean

lastImage(maxBytes?): string

The last successful capture’s PNG as a data: URI for a Web view, or ‘’ if there is none or it is over the cap. A failed capture clears it.

number

Size cap; default 8 MiB.

string