MapOptions

API reference for MapOptions in @erlcjs/map.

Map Options to customise the map generation.

Signature:

interface MapOptions

#Properties

Property

Modifiers

Type

Description

emergencyCalls?

EmergencyCallManager | EmergencyCall[]

(Optional) Emergency calls to show on the map.

map

MapType | string | Buffer | ArrayBuffer

The map used in the background, can use a preset map from ER:LC or a custom map.

players?

PlayerManager | Player[]

(Optional) Players to show on the map.

showModCalls?

boolean

(Optional) Whether to show mod calls on the map.

size?

48 | 50 | 60 | 75 | 100 | 110 | 150 | 180

(Optional) Player image size, defaults to 60.