MarkerManager
@vimp-mp/types 2.0.1Manages marker instances in this scripting context.
ts
interface MarkerManagerMembers
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 | nullCreate 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): booleanDestroy 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 | nullReturns the marker with id, or null when it does not exist.