Blip
Defined in: server/api.d.ts:4587
Replicated compass and map-screen blip handle.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Blip(
id):Blip
Defined in: server/api.d.ts:4592
Creates a script wrapper for an existing blip with this ID; use Blip.create() to place one.
Parameters
Section titled “Parameters”number
Network entity identifier.
Returns
Section titled “Returns”Blip
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”remove()
Section titled “remove()”remove():
void
Defined in: server/api.d.ts:4628
Takes this blip off every compass and map screen that shows it.
Returns
Section titled “Returns”void
setVirtualWorld()
Section titled “setVirtualWorld()”setVirtualWorld(
world):void
Defined in: server/api.d.ts:9890
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:9896
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:4623
Formats this blip handle for logging and debugging.
Returns
Section titled “Returns”string
The blip ID, its type and its label.
Inherited from
Section titled “Inherited from”
staticall(virtualWorld?):Blip[]
Defined in: server/api.d.ts:4642
Lists every blip the server currently has.
Parameters
Section titled “Parameters”virtualWorld?
Section titled “virtualWorld?”number
Optional virtual world to list; omitted lists every one of them.
Returns
Section titled “Returns”Blip[]
One handle per live blip, in no particular order.
create()
Section titled “create()”
staticcreate(options):Blip
Defined in: server/api.d.ts:4635
Puts a blip on the compass and map screen of every player in its virtual world, or of the one player it is private to. It is a replicated entity that is never culled by distance – a blip is for finding something far away – so it reaches players however far they are and whenever they join, and assigning position moves it for all of them. setVisibleTo works on it like on any entity.
Parameters
Section titled “Parameters”options
Section titled “options”Where the blip goes, which icon it draws with – one of Blip.types(), GeneralPoi by default – its mark state, its name on the map screen, and whether it shows on the compass and the map screen, both by default. player makes it private to that player from the start; virtualWorld puts a public one in that world, the global one by default.
compass?
Section titled “compass?”boolean
label?
Section titled “label?”string
boolean
markState?
Section titled “markState?”number
player?
Section titled “player?”position
Section titled “position”string
virtualWorld?
Section titled “virtualWorld?”number
Returns
Section titled “Returns”Blip
The new blip handle.
getById()
Section titled “getById()”
staticgetById(id):Blip|null
Defined in: server/api.d.ts:4649
Looks a blip up by its network entity ID.
Parameters
Section titled “Parameters”number
Network entity identifier.
Returns
Section titled “Returns”Blip | null
The blip’s handle, or null when no live blip has that ID.
removeAll()
Section titled “removeAll()”
staticremoveAll(virtualWorld?):number
Defined in: server/api.d.ts:4656
Removes blips.
Parameters
Section titled “Parameters”virtualWorld?
Section titled “virtualWorld?”number
Optional virtual world to clear; omitted clears every one of them.
Returns
Section titled “Returns”number
How many blips were removed.
types()
Section titled “types()”
statictypes():string[]
Defined in: server/api.d.ts:4662
Every icon a blip can draw with, by the game’s own name for it, misspellings included.
Returns
Section titled “Returns”string[]
The names, in the game’s own order.
Properties
Section titled “Properties”compass
Section titled “compass”compass:
boolean
Defined in: server/api.d.ts:4612
Whether the blip is drawn on players’ HUD compasses.
readonlyid:number
Defined in: server/api.d.ts:9858
Immutable network entity identifier.
Inherited from
Section titled “Inherited from”label:
string
Defined in: server/api.d.ts:4607
The blip’s name on the map screen, shown verbatim in place of the name the game gives its icon type; empty keeps that name. Cut to 64 bytes. The compass has no text, so it never shows this.
map:
boolean
Defined in: server/api.d.ts:4617
Whether the blip is drawn on players’ map screens, for an icon the map has art for: Main, Side, Micro, Checkpoint, Dlcs, Bailiff, FistFight and Racing have none and stay on the compass. The map legend’s switch for the blip’s icon type hides it like one of the game’s own.
markState
Section titled “markState”markState:
number
Defined in: server/api.d.ts:4602
The mark’s state, forwarded to the compass and map movies as-is – what the client Blip calls state, renamed here because every entity’s state is its StateBag. What a given value draws is undocumented; 0 is what a fresh game mark carries.
position
Section titled “position”position:
Vector3
Defined in: server/api.d.ts:9868
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:9873
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:9878
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”type:
string
Defined in: server/api.d.ts:4597
Which of the game’s own compass icons the blip draws as, by the game’s own name for it – Blip.types() lists them. Assigning a name the game does not know leaves the blip as it was.
virtualWorld
Section titled “virtualWorld”
readonlyvirtualWorld:number
Defined in: server/api.d.ts:9863
Current virtual-world identifier.