Skip to content

BlipManager

@vimp-mp/types 2.0.1

Interface · Server API

Manages blip instances in this scripting context.

ts
interface BlipManager

Members

all

ts
readonly all: Array<Blip>

All currently alive blips.

create

ts
create(sprite: number, x: number, y: number, z: number, color: number, scale: number, extras?: BlipExtras): Blip | null

Create a blip. sprite is the blip icon id (any GTA blip sprite, no server-side validation), color is the palette index, and scale is clamped by runtime to 0-255. Returns null if the server is full.

destroy

ts
destroy(id: number): boolean

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

getById

ts
getById(id: number): Blip | null

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

VIMP developer documentation