Skip to content
FMFallout Multiplayer Scripting APIScripting guides and API
Runtime classServer APIGenerated

Blip

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

A marker on every player’s HUD compass and Pip-Boy map, as FiveM’s blips: at a point, or following a player or an NPC. A player sees it while they are in its worldspace or interior. A blip outlives the resource that made it until destroyed. Move it with setPosition or attachTo, not by setting position.

new Blip(id): Blip

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

Wraps the blip with this ID; it creates nothing.

number

Network entity identifier.

Blip

Entity.constructor

attachTo(target): boolean

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

Has the blip follow a player or an NPC, as FiveM’s AddBlipForEntity does: each player’s game puts it on that body while it has it loaded, and on where the server last saw it otherwise.

Player | Npc | null

Whose body to follow; null to stay where it is.

boolean

False once it is gone.


destroy(): boolean

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

Takes the blip off every player’s compass and map.

boolean

False once it is gone.


getAttached(): Player | Npc | null

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

Whom the blip follows.

Player | Npc | null

Null for a blip at a point, or once that body is gone.


getPlayer(): Player | null

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

The one player who sees the blip.

Player | null

Null while everyone does.


setLabel(label): boolean

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

Changes what the Pip-Boy map’s tooltip says.

string

Up to 63 bytes of UTF-8.

boolean

False once it is gone.


setPlayer(player): boolean

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

Shows the blip to one player only, as a FiveM blip a client script made for its own player: a delivery’s drop point, a bounty on someone’s own map.

Player | null

The one player who sees it; null for everyone.

boolean

False once it is gone.


setPosition(position, space?): boolean

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

Moves the blip to a point, as FiveM’s SetBlipCoords does; it stops following anyone.

Vector3

Where, in world units.

{ worldSpace: number; } | { interiorCell: number; }

Where that is; its current space when left out.

boolean

False once it is gone.


setVirtualWorld(world): void

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

Moves this entity into another virtual world.

number

Virtual-world identifier used to partition replication and visibility.

void

Entity.setVirtualWorld


setVisibleTo(player): void

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

Restricts replication of this entity to one owning connection while preserving normal range and visibility checks.

Entity | null

Player-owned entity whose connection should exclusively receive this entity, or null to clear the restriction.

void

Entity.setVisibleTo


toString(): string

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

Formats this handle for logging.

string

The blip’s network ID and label.

Entity.toString


static all(): Blip[]

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

Every blip.

Blip[]

One handle per blip.


static create(options): Blip | null

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

Puts a blip on every player’s compass and map, as FiveM’s AddBlipForCoord and AddBlipForEntity do.

position or entity, where it is or whom it follows. label: the map’s tooltip. kind: the icon, “quest” by default. compass and map: where it shows, both by default. space: a point’s worldspace or interior, the Commonwealth when left out. player: the one player who sees it, everyone when left out.

boolean

Player | Npc

"quest" | "custom" | "powerArmor"

string

boolean

Player

Vector3

{ worldSpace: number; } | { interiorCell: number; }

Blip | null

The blip; null when it could not be made. Throws for options that name neither a position nor a body.

readonly id: number

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

Immutable network entity identifier.

Entity.id


readonly label: string

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

What the Pip-Boy map’s tooltip says; empty once it is gone.


position: Vector3

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

Authoritative world-space position; assignment forces replicated state.

Entity.position


rotation: Vector3 | Quaternion

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

Authoritative rotation; reads return a quaternion and assignments accept a quaternion or Euler angles in degrees.

Entity.rotation


readonly state: StateBag

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

Arbitrary key/value state carried by this entity. The server writes it and every client that can see the entity receives it; see StateBag.

Entity.state


readonly virtualWorld: number

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

Current virtual-world identifier.

Entity.virtualWorld