Blip
@vimp-mp/types 2.0.1World 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.
interface Blip extends StreamSyncedMetaMembers
alpha
alpha: numberOpacity, clamped by the runtime to 0–255.
color
color: numberGTA blip palette colour identifier.
dimension
dimension: numberVirtual world; the blip is visible only to players in the same dimension.
drawDistance
drawDistance: numberServer-side stored draw distance value. Default: 0.
global
global: booleanWhether the blip streams to every player in the same dimension. Default: false.
id
readonly id: numberServer-assigned blip identifier.
isExists
readonly isExists: booleanWhether the blip is still registered with the server runtime.
name
name: stringLabel shown for the blip in the map UI.
position
position: Vec3Authoritative world position.
rotation
rotation: numberBlip heading in degrees.
scale
scale: numberBlip scale, clamped by the runtime to 0–255.
shortRange
shortRange: booleanWhether the blip is hidden outside the local minimap range.
sprite
sprite: numberGTA blip sprite identifier.
deleteStreamSyncedMeta
deleteStreamSyncedMeta(key: string): voidDeletes key and propagates the removal to streaming clients.
destroy
destroy(): booleanDestroy the blip and unregister it from vimp.blips.
getStreamSyncedMeta
getStreamSyncedMeta<T = unknown>(key: string): T | undefinedReturns undefined if the key is unset.
getStreamSyncedMetaKeys
getStreamSyncedMetaKeys(): Array<string>Returns all stream-synced metadata keys stored on the entity.
hasStreamSyncedMeta
hasStreamSyncedMeta(key: string): booleanReturns whether the entity has a value for key.
setStreamSyncedMeta
setStreamSyncedMeta(key: string, value: unknown): voidSet 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.