Blip
Defined in: server/api.d.ts:1138
Replicated map icon that can be positioned in the world or attached to an entity.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Blip(
id):Blip
Defined in: server/api.d.ts:1143
Creates a script wrapper for an existing blip with this ID; use Blip.create() to create a blip.
Parameters
Section titled “Parameters”number
Network entity identifier.
Returns
Section titled “Returns”Blip
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”attachToPlayer()
Section titled “attachToPlayer()”attachToPlayer(
player):void
Defined in: server/api.d.ts:1215
Attaches this blip to a player so its position follows that entity.
Parameters
Section titled “Parameters”player
Section titled “player”number | Player
Player handle or network entity ID to follow.
Returns
Section titled “Returns”void
attachToVehicle()
Section titled “attachToVehicle()”attachToVehicle(
vehicle):void
Defined in: server/api.d.ts:1221
Attaches this blip to a vehicle so its position follows that entity.
Parameters
Section titled “Parameters”vehicle
Section titled “vehicle”number | Vehicle
Vehicle handle or network entity ID to follow.
Returns
Section titled “Returns”void
destroy()
Section titled “destroy()”destroy():
void
Defined in: server/api.d.ts:1184
Destroys this replicated blip and removes it from connected clients.
Returns
Section titled “Returns”void
setDisplay()
Section titled “setDisplay()”setDisplay(
display):void
Defined in: server/api.d.ts:1209
Chooses whether the blip appears on the minimap, the fullscreen map, or both.
Parameters
Section titled “Parameters”display
Section titled “display”"map" | "both" | "minimap"
Map views that draw the blip.
Returns
Section titled “Returns”void
setIcon()
Section titled “setIcon()”setIcon(
library,iconId):void
Defined in: server/api.d.ts:1191
Changes the icon displayed by this blip.
Parameters
Section titled “Parameters”library
Section titled “library”number
Icon-library identifier.
iconId
Section titled “iconId”number
Icon identifier within the selected library.
Returns
Section titled “Returns”void
setRange()
Section titled “setRange()”setRange(
meters):void
Defined in: server/api.d.ts:1203
Limits the blip to players near it. Evaluated on each client, so players moving around costs no server traffic.
Parameters
Section titled “Parameters”meters
Section titled “meters”number
Horizontal distance from each player within which the blip is shown; 0 shows it on the whole map. Capped at 10000.
Returns
Section titled “Returns”void
setText()
Section titled “setText()”setText(
text):void
Defined in: server/api.d.ts:1197
Sets the tooltip text displayed when a player hovers this blip on the fullscreen map.
Parameters
Section titled “Parameters”string
Tooltip shown while the cursor hovers this blip on the fullscreen map; empty removes it. Truncated to 48 characters.
Returns
Section titled “Returns”void
setVirtualWorld()
Section titled “setVirtualWorld()”setVirtualWorld(
world):void
Defined in: server/api.d.ts:4154
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:4160
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:1179
Returns a readable representation of this blip.
Returns
Section titled “Returns”string
The blip ID formatted for logging or debugging.
Inherited from
Section titled “Inherited from”create()
Section titled “create()”
staticcreate(x,y,z,library,iconId,color?,virtualWorld?,text?,range?):Blip
Defined in: server/api.d.ts:1236
Creates and replicates a world-map blip.
Parameters
Section titled “Parameters”number
Initial world-space X coordinate.
number
Initial world-space Y coordinate.
number
Initial world-space Z coordinate.
library
Section titled “library”number
Icon-library identifier.
iconId
Section titled “iconId”number
Icon identifier within the selected library.
color?
Section titled “color?”number
Optional game palette color identifier.
virtualWorld?
Section titled “virtualWorld?”number
Optional virtual-world ID used for visibility filtering.
string
Optional tooltip shown while the cursor hovers the blip on the fullscreen map. Truncated to 48 characters.
range?
Section titled “range?”number
Optional visibility range in meters from each player; 0 or omitted shows it on the whole map.
Returns
Section titled “Returns”Blip
The newly created blip handle.
Properties
Section titled “Properties”
readonlycolor:number
Defined in: server/api.d.ts:1158
Current game palette color identifier.
display
Section titled “display”
readonlydisplay:"map"|"both"|"minimap"
Defined in: server/api.d.ts:1173
Map views that draw the blip.
iconId
Section titled “iconId”
readonlyiconId:number
Defined in: server/api.d.ts:1153
Current icon identifier within iconLibrary.
iconLibrary
Section titled “iconLibrary”
readonlyiconLibrary:number
Defined in: server/api.d.ts:1148
Current icon-library identifier.
readonlyid:number
Defined in: server/api.d.ts:4122
Immutable network entity identifier.
Inherited from
Section titled “Inherited from”position
Section titled “position”position:
Vector3
Defined in: server/api.d.ts:4132
Authoritative world-space position; assignment forces replicated state.
Inherited from
Section titled “Inherited from”
readonlyrange:number
Defined in: server/api.d.ts:1168
Visibility range in meters; 0 when the blip shows on the whole map.
rotation
Section titled “rotation”rotation:
Vector3|Quaternion
Defined in: server/api.d.ts:4137
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:4142
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”
readonlytext:string
Defined in: server/api.d.ts:1163
Current fullscreen-map hover tooltip; empty when the blip has none.
virtualWorld
Section titled “virtualWorld”
readonlyvirtualWorld:number
Defined in: server/api.d.ts:4127
Current virtual-world identifier.
