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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Blip(
id):Blip
Defined in: server/api.d.ts:2302
Wraps the blip with this ID; it creates nothing.
Parameters
Section titled “Parameters”number
Network entity identifier.
Returns
Section titled “Returns”Blip
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”attachTo()
Section titled “attachTo()”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.
Parameters
Section titled “Parameters”target
Section titled “target”Whose body to follow; null to stay where it is.
Returns
Section titled “Returns”boolean
False once it is gone.
destroy()
Section titled “destroy()”destroy():
boolean
Defined in: server/api.d.ts:2313
Takes the blip off every player’s compass and map.
Returns
Section titled “Returns”boolean
False once it is gone.
getAttached()
Section titled “getAttached()”Defined in: server/api.d.ts:2340
Whom the blip follows.
Returns
Section titled “Returns”Null for a blip at a point, or once that body is gone.
getPlayer()
Section titled “getPlayer()”getPlayer():
Player|null
Defined in: server/api.d.ts:2353
The one player who sees the blip.
Returns
Section titled “Returns”Player | null
Null while everyone does.
setLabel()
Section titled “setLabel()”setLabel(
label):boolean
Defined in: server/api.d.ts:2360
Changes what the Pip-Boy map’s tooltip says.
Parameters
Section titled “Parameters”string
Up to 63 bytes of UTF-8.
Returns
Section titled “Returns”boolean
False once it is gone.
setPlayer()
Section titled “setPlayer()”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.
Parameters
Section titled “Parameters”player
Section titled “player”Player | null
The one player who sees it; null for everyone.
Returns
Section titled “Returns”boolean
False once it is gone.
setPosition()
Section titled “setPosition()”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.
Parameters
Section titled “Parameters”position
Section titled “position”Where, in world units.
space?
Section titled “space?”{ worldSpace: number; } | { interiorCell: number; }
Where that is; its current space when left out.
Returns
Section titled “Returns”boolean
False once it is gone.
setVirtualWorld()
Section titled “setVirtualWorld()”setVirtualWorld(
world):void
Defined in: server/api.d.ts:4292
Moves this entity into another virtual world.
Parameters
Section titled “Parameters”number
Virtual-world identifier used to partition replication and visibility.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”setVisibleTo()
Section titled “setVisibleTo()”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.
Parameters
Section titled “Parameters”player
Section titled “player”Entity | null
Player-owned entity whose connection should exclusively receive this entity, or null to clear the restriction.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”toString()
Section titled “toString()”toString():
string
Defined in: server/api.d.ts:2319
Formats this handle for logging.
Returns
Section titled “Returns”string
The blip’s network ID and label.
Inherited from
Section titled “Inherited from”
staticall():Blip[]
Defined in: server/api.d.ts:2373
Every blip.
Returns
Section titled “Returns”Blip[]
One handle per blip.
create()
Section titled “create()”
staticcreate(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.
Parameters
Section titled “Parameters”options
Section titled “options”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.
compass?
Section titled “compass?”boolean
entity?
Section titled “entity?”"quest" | "custom" | "powerArmor"
label?
Section titled “label?”string
boolean
player?
Section titled “player?”position?
Section titled “position?”space?
Section titled “space?”{ worldSpace: number; } | { interiorCell: number; }
Returns
Section titled “Returns”Blip | null
The blip; null when it could not be made. Throws for options that name neither a position nor a body.
Properties
Section titled “Properties”
readonlyid:number
Defined in: server/api.d.ts:4260
Immutable network entity identifier.
Inherited from
Section titled “Inherited from”
readonlylabel:string
Defined in: server/api.d.ts:2307
What the Pip-Boy map’s tooltip says; empty once it is gone.
position
Section titled “position”position:
Vector3
Defined in: server/api.d.ts:4270
Authoritative world-space position; assignment forces replicated state.
Inherited from
Section titled “Inherited from”rotation
Section titled “rotation”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.
Inherited from
Section titled “Inherited from”
readonlystate: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.
Inherited from
Section titled “Inherited from”virtualWorld
Section titled “virtualWorld”
readonlyvirtualWorld:number
Defined in: server/api.d.ts:4265
Current virtual-world identifier.