a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Client / Blip
Represents a map blip in the game environment.
new Blip(
handle
):Blip
• handle: number
get
Alpha():number
set
Alpha(alpha
):void
• alpha: number
number
get
Color():BlipColors
set
Color(color
):void
• color: BlipColors
get
Display():number
set
Display(display
):void
• display: number
number
get
Handle():number
number
set
IsCrew(crew
):void
• crew: boolean
get
IsFlashing():boolean
set
IsFlashing(flashing
):void
• flashing: boolean
boolean
set
IsFriend(friend
):void
• friend: boolean
set
IsFriendly(friendly
):void
• friendly: boolean
get
IsOnMinimap():boolean
boolean
get
IsShortRange():boolean
set
IsShortRange(shortRange
):void
• shortRange: boolean
boolean
set
Name(name
):void
• name: string
set
NumberLabel(number
):void
• number: number
get
Position():Vector3
set
Position(vector
):void
• vector: Vector3
set
Priority(priority
):void
• priority: number
get
Rotation():number
set
Rotation(rot
):void
• rot: number
number
set
Scale(scale
):void
• scale: BlipScale
set
ShowHeadingIndicator(show
):void
• show: boolean
set
ShowRoute(show
):void
• show: boolean
get
Sprite():BlipSprites
set
Sprite(sprite
):void
• sprite: BlipSprites
get
Type():BlipType
delete():
void
Deletes the current blip if it exists. This method checks for the existence of the blip and removes it.
void
No return value.
exists():
boolean
Checks if the blip exists based on the current handle.
boolean
True if the blip exists, otherwise false.
removeNumberLabel():
void
Removes the numerical label displayed on the associated map blip.
void
static
createBlipFromArea(coords
,width
,height
,name
,sprite
,display
,scale
,color
,shortRange
):BlipData
Creates a blip on the map from a specified area.
• coords: Vector3
The coordinate location for the blip.
• width: number
The width of the area for the blip.
• height: number
The height of the area for the blip.
• name: string
The name of the blip.
• sprite: BlipSprites
The sprite identifier for the blip.
• display: BlipDisplay
The display settings for the blip.
• scale: BlipScale
The scale of the blip.
• color: BlipColors
The color of the blip.
• shortRange: boolean
Indicates if the blip should only be visible on short range.
The data of the created blip.
static
createBlipFromCoords(coords
,name
,sprite
,display
,scale
,color
,shortRange
):BlipData
Creates a blip on the map from the provided coordinates.
• coords: Vector3
The 3D coordinates where the blip will be created.
• name: string
The name of the blip.
• sprite: BlipSprites
The sprite type for the blip.
• display: BlipDisplay
The display setting for the blip.
• scale: BlipScale
The scale of the blip.
• color: BlipColors
The color of the blip.
• shortRange: boolean
Indicates if the blip is short-range (visible only when nearby).
The data structure representing the created blip.
static
createBlipFromRadius(coords
,radius
,name
,sprite
,display
,scale
,color
,shortRange
):BlipData
Creates a blip on the map using a specified radius and sets its data.
• coords: Vector3
The coordinates where the blip will be created.
• radius: number
The radius of the blip.
• name: string
The name of the blip for identification.
• sprite: BlipSprites
The sprite type of the blip to be displayed.
• display: BlipDisplay
The display style of the blip.
• scale: BlipScale
The scale of the blip on the map.
• color: BlipColors
The color of the blip.
• shortRange: boolean
Whether the blip is visible only when in short range.
The data of the created blip.