Skip to content

MarkerManager

@vimp-mp/types 2.0.1

Interface · Client API

Creates client-local markers and tracks server-owned marker wrappers.

ts
interface MarkerManager

Members

all

ts
readonly all: Array<Marker>

All known non-destroyed markers.

count

ts
readonly count: number

Number of known non-destroyed markers.

create

ts
create(markerType: number, position: Vec3, options?: MarkerCreateOptions): Marker | null

Creates a client-local marker with the supplied GTA marker type.

destroy

ts
destroy(id: number): boolean

Destroys the client-local marker identified by its wrapper id.

getById

ts
getById(id: number): Marker | null

Returns a known marker by client-local wrapper id.

getByRemoteId

ts
getByRemoteId(remoteId: number): Marker | null

Returns a remote marker by server/network id.

VIMP developer documentation