Skip to content
M2O Scripting APIScripting reference
Runtime classServer APIGenerated

Blip

Defined in: server/api.d.ts:863

Replicated map icon that can be positioned in the world or attached to an entity.

  • Entity

new Blip(id): Blip

Defined in: server/api.d.ts:868

Creates a script wrapper for an existing blip with this ID; use Blip.create() to create a blip.

number

Network entity identifier.

Blip

attachToPlayer(player): void

Defined in: server/api.d.ts:907

Attaches this blip to a player so its position follows that entity.

number | Player

Player handle or network entity ID to follow.

void


attachToVehicle(vehicle): void

Defined in: server/api.d.ts:913

Attaches this blip to a vehicle so its position follows that entity.

number | Vehicle

Vehicle handle or network entity ID to follow.

void


destroy(): void

Defined in: server/api.d.ts:894

Destroys this replicated blip and removes it from connected clients.

void


setIcon(library, iconId): void

Defined in: server/api.d.ts:901

Changes the icon displayed by this blip.

number

Icon-library identifier.

number

Icon identifier within the selected library.

void


setVirtualWorld(world): void

Defined in: shared.d.ts:83

number

void


setVisibleTo(player): void

Defined in: shared.d.ts:84

Entity | null

void


toString(): string

Defined in: server/api.d.ts:889

Returns a readable representation of this blip.

string

The blip ID formatted for logging or debugging.


static create(x, y, z, library, iconId, color?, virtualWorld?): Blip

Defined in: server/api.d.ts:926

Creates and replicates a world-map blip.

number

Initial world-space X coordinate.

number

Initial world-space Y coordinate.

number

Initial world-space Z coordinate.

number

Icon-library identifier.

number

Icon identifier within the selected library.

number

Optional game palette color identifier.

number

Optional virtual-world ID used for visibility filtering.

Blip

The newly created blip handle.

readonly color: number

Defined in: server/api.d.ts:883

Current game palette color identifier.


readonly iconId: number

Defined in: server/api.d.ts:878

Current icon identifier within iconLibrary.


readonly iconLibrary: number

Defined in: server/api.d.ts:873

Current icon-library identifier.


readonly id: number

Defined in: shared.d.ts:79


position: Vector3

Defined in: shared.d.ts:81


rotation: Vector3 | Quaternion

Defined in: shared.d.ts:82


readonly virtualWorld: number

Defined in: shared.d.ts:80