Skip to content

MarkerManager ​

@vimp-mp/types 2.0.1

Interface · Server API

Manages marker instances in this scripting context.

ts
interface MarkerManager

Members ​

all ​

ts
readonly all: Array<Marker>

All currently alive markers.

create ​

ts
create(type: number, x: number, y: number, z: number, scale: number, extras?: MarkerExtras): Marker | null

Create a marker. type is the GTA marker enum, scale is the scale multiplier forwarded to the native op. Returns null if the server is full.

destroy ​

ts
destroy(id: number): boolean

Destroy a marker by id. Prefer marker.destroy() when you hold the instance — this is a convenience for callers that only have the id.

getById ​

ts
getById(id: number): Marker | null

Returns the marker with id, or null when it does not exist.

VIMP developer documentation