Skip to content

Blip ​

@vimp-mp/types 2.0.1

Interface · Server API

World blip handle returned by vimp.blips.create.

Mutating sprite, position, color, scale, name, alpha, global, shortRange, rotation or dimension updates the authoritative server state and is synchronized to clients streaming the blip. drawDistance is stored as server-side API state and does not affect streaming or rendering.

ts
interface Blip extends StreamSyncedMeta

Members ​

alpha ​

ts
alpha: number

Opacity, clamped by the runtime to 0–255.

color ​

ts
color: number

GTA blip palette colour identifier.

dimension ​

ts
dimension: number

Virtual world; the blip is visible only to players in the same dimension.

drawDistance ​

ts
drawDistance: number

Server-side stored draw distance value. Default: 0.

global ​

ts
global: boolean

Whether the blip streams to every player in the same dimension. Default: false.

id ​

ts
readonly id: number

Server-assigned blip identifier.

isExists ​

ts
readonly isExists: boolean

Whether the blip is still registered with the server runtime.

name ​

ts
name: string

Label shown for the blip in the map UI.

position ​

ts
position: Vec3

Authoritative world position.

rotation ​

ts
rotation: number

Blip heading in degrees.

scale ​

ts
scale: number

Blip scale, clamped by the runtime to 0–255.

shortRange ​

ts
shortRange: boolean

Whether the blip is hidden outside the local minimap range.

sprite ​

ts
sprite: number

GTA blip sprite identifier.

deleteStreamSyncedMeta ​

ts
deleteStreamSyncedMeta(key: string): void

Deletes key and propagates the removal to streaming clients.

destroy ​

ts
destroy(): boolean

Destroy the blip and unregister it from vimp.blips.

getStreamSyncedMeta ​

ts
getStreamSyncedMeta<T = unknown>(key: string): T | undefined

Returns undefined if the key is unset.

getStreamSyncedMetaKeys ​

ts
getStreamSyncedMetaKeys(): Array<string>

Returns all stream-synced metadata keys stored on the entity.

hasStreamSyncedMeta ​

ts
hasStreamSyncedMeta(key: string): boolean

Returns whether the entity has a value for key.

setStreamSyncedMeta ​

ts
setStreamSyncedMeta(key: string, value: unknown): void

Set or replace one key. The value is forwarded to every player currently streaming this entity, plus included in the snapshot for any future stream-in. Use deleteStreamSyncedMeta rather than undefined when the key must be removed.

VIMP developer documentation