fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Client / Blip

Class: Blip

Represents a map blip in the game environment.

Constructors

new Blip()

new Blip(handle): Blip

Parameters

handle: number

Returns

Blip

Defined in

client/Blip.ts:43

Accessors

Alpha

get Alpha(): number

set Alpha(alpha): void

Parameters

alpha: number

Returns

number

Defined in

client/Blip.ts:74


Color

get Color(): BlipColors

set Color(color): void

Parameters

color: BlipColors

Returns

BlipColors

Defined in

client/Blip.ts:90


Display

get Display(): number

set Display(display): void

Parameters

display: number

Returns

number

Defined in

client/Blip.ts:106


Handle

get Handle(): number

Returns

number

Defined in

client/Blip.ts:45


IsCrew

set IsCrew(crew): void

Parameters

crew: boolean

Defined in

client/Blip.ts:136


IsFlashing

get IsFlashing(): boolean

set IsFlashing(flashing): void

Parameters

flashing: boolean

Returns

boolean

Defined in

client/Blip.ts:140


IsFriend

set IsFriend(friend): void

Parameters

friend: boolean

Defined in

client/Blip.ts:132


IsFriendly

set IsFriendly(friendly): void

Parameters

friendly: boolean

Defined in

client/Blip.ts:128


IsOnMinimap

get IsOnMinimap(): boolean

Returns

boolean

Defined in

client/Blip.ts:148


IsShortRange

get IsShortRange(): boolean

set IsShortRange(shortRange): void

Parameters

shortRange: boolean

Returns

boolean

Defined in

client/Blip.ts:152


Name

set Name(name): void

Parameters

name: string

Defined in

client/Blip.ts:114


NumberLabel

set NumberLabel(number): void

Parameters

number: number

Defined in

client/Blip.ts:86


Position

get Position(): Vector3

set Position(vector): void

Parameters

vector: Vector3

Returns

Vector3

Defined in

client/Blip.ts:49


Priority

set Priority(priority): void

Parameters

priority: number

Defined in

client/Blip.ts:82


Rotation

get Rotation(): number

set Rotation(rot): void

Parameters

rot: number

Returns

number

Defined in

client/Blip.ts:58


Scale

set Scale(scale): void

Parameters

scale: BlipScale

Defined in

client/Blip.ts:66


ShowHeadingIndicator

set ShowHeadingIndicator(show): void

Parameters

show: boolean

Defined in

client/Blip.ts:120


ShowRoute

set ShowRoute(show): void

Parameters

show: boolean

Defined in

client/Blip.ts:124


Sprite

get Sprite(): BlipSprites

set Sprite(sprite): void

Parameters

sprite: BlipSprites

Returns

BlipSprites

Defined in

client/Blip.ts:98


Type

get Type(): BlipType

Returns

BlipType

Defined in

client/Blip.ts:70

Methods

delete()

delete(): void

Deletes the current blip if it exists. This method checks for the existence of the blip and removes it.

Returns

void

No return value.

Defined in

client/Blip.ts:184


exists()

exists(): boolean

Checks if the blip exists based on the current handle.

Returns

boolean

True if the blip exists, otherwise false.

Defined in

client/Blip.ts:174


removeNumberLabel()

removeNumberLabel(): void

Removes the numerical label displayed on the associated map blip.

Returns

void

Defined in

client/Blip.ts:165


createBlipFromArea()

static createBlipFromArea(coords, width, height, name, sprite, display, scale, color, shortRange): BlipData

Creates a blip on the map from a specified area.

Parameters

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.

Returns

BlipData

The data of the created blip.

Defined in

client/Blip.ts:287


createBlipFromCoords()

static createBlipFromCoords(coords, name, sprite, display, scale, color, shortRange): BlipData

Creates a blip on the map from the provided coordinates.

Parameters

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).

Returns

BlipData

The data structure representing the created blip.

Defined in

client/Blip.ts:205


createBlipFromRadius()

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.

Parameters

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.

Returns

BlipData

The data of the created blip.

Defined in

client/Blip.ts:245