Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Protected constructor

Properties

alpha

alpha: number

asMissionCreator

asMissionCreator: boolean

blipType

blipType: BlipType

bright

bright: boolean

category

category: number

color

color: BlipColor | number

crewIndicatorVisible

crewIndicatorVisible: boolean

dimension

dimension: number

Object dimension.

remarks

Check https://docs.altv.mp/articles/dimensions.html to understand how it works.

display

display: number

flashInterval

flashInterval: number

flashTimer

flashTimer: number

flashes

flashes: boolean

flashesAlternate

flashesAlternate: boolean

friendIndicatorVisible

friendIndicatorVisible: boolean

gxtName

gxtName: string

heading

heading: number

headingIndicatorVisible

headingIndicatorVisible: boolean

highDetail

highDetail: boolean

Readonly id

id: number

Readonly isAttached

isAttached: boolean

isFriendly

isFriendly: boolean

Readonly isGlobal

isGlobal: boolean

isHiddenOnLegend

isHiddenOnLegend: boolean

isMinimalOnEdge

isMinimalOnEdge: boolean

Readonly isRemote

isRemote: boolean

Whether this entity was created clientside or serverside. (Clientside = false, Serverside = true).

isShortHeightThreshold

isShortHeightThreshold: boolean

Readonly isStreamedIn

isStreamedIn: boolean

name

name: string

number

number: number

outlineIndicatorVisible

outlineIndicatorVisible: boolean

pos

pos: Vector3

Object position

priority

priority: number

pulse

pulse: boolean

Readonly refCount

refCount: number

Returns the ref count of the entity.

remarks

It's only available in debug-mode.

Readonly remoteID

remoteID: number

The serverside id of this entity.

route

route: boolean

routeColor

routeColor: RGBA

scale

scale: number

Readonly scriptID

scriptID: number

secondaryColor

secondaryColor: number | RGBA

shortRange

shortRange: boolean

showCone

showCone: boolean

shrinked

shrinked: boolean

size

size: Vector2

sprite

sprite: BlipSprite

tickVisible

tickVisible: boolean

Readonly type

Type of the object.

useHeightIndicatorOnEdge

useHeightIndicatorOnEdge: boolean

Readonly valid

valid: boolean

Object usability.

returns

False if object is no longer usable.

visible

visible: boolean

Static Readonly all

all: readonly Blip[]

Array with all blips.

remarks

This creates a clone of the array everytime it is called. It is advised to call this once and store the result in a variable, before iterating over it.

example
const blips = alt.Blip.all; // Store it in a variable, so it doesn't create a copy of the array on each iteration
for(let i = 0; i < blips.length; i++)
{
  alt.log(`${blips[i].scriptID}`); // Logs the scriptID of every blip
}

Static Readonly count

count: number

Methods

deleteMeta

  • deleteMeta(key: string): void
  • deleteMeta<K>(key: K): void

destroy

  • destroy(): void
  • Removes the object from the world.

    Returns void

fade

  • fade(opacity: number, duration: number): void
  • Parameters

    • opacity: number
    • duration: number

    Returns void

getMeta

  • getMeta<K>(key: Exclude<K, keyof ICustomBlipMeta>): unknown
  • getMeta<K>(key: K): ICustomBlipMeta[K] | undefined
  • getMeta<V>(key: string): V | undefined
  • Type parameters

    • K: string

    Parameters

    Returns unknown

  • Type parameters

    Parameters

    • key: K

    Returns ICustomBlipMeta[K] | undefined

  • deprecated

    See ICustomBlipMeta

    Type parameters

    • V: any

    Parameters

    • key: string

    Returns V | undefined

getMetaDataKeys

  • getMetaDataKeys(): readonly string[]

getSyncedMeta

  • getSyncedMeta<K>(key: Exclude<K, keyof ICustomBaseObjectSyncedMeta>): unknown
  • getSyncedMeta<K>(key: K): ICustomBaseObjectSyncedMeta[K] | undefined
  • getSyncedMeta<V>(key: string): V | undefined

getSyncedMetaKeys

  • getSyncedMetaKeys(): readonly string[]

hasMeta

  • hasMeta(key: string): boolean
  • hasMeta<K>(key: K): boolean
  • Parameters

    • key: string

    Returns boolean

  • Type parameters

    Parameters

    • key: K

    Returns boolean

hasSyncedMeta

  • hasSyncedMeta(key: string): boolean
  • hasSyncedMeta<K>(key: K): boolean
  • Determines whether contains the specified key.

    Parameters

    • key: string

      The key of the value to locate.

    Returns boolean

    True if the meta table contains any data at the specified key or False if not

  • Type parameters

    Parameters

    • key: K

    Returns boolean

setMeta

  • setMeta<K>(key: K, value: shared.InterfaceValueByKey<ICustomBlipMeta, K>): void
  • setMeta<K>(key: K, value: ICustomBlipMeta[K]): void
  • setMeta<V, K>(key: K, value: shared.InterfaceValueByKey<ICustomBlipMeta, K, V>): void
  • Type parameters

    • K: string

    Parameters

    Returns void

  • Type parameters

    Parameters

    • key: K
    • value: ICustomBlipMeta[K]

    Returns void

  • deprecated

    See ICustomBlipMeta

    Type parameters

    • V: any

    • K: string = string

    Parameters

    Returns void

Static getByID

  • getByID(id: number): Blip | null
  • Retrieves the blip from the pool.

    Parameters

    • id: number

      The id of the blip.

    Returns Blip | null

    Entity if it was found, otherwise null.

Static getByRemoteID

  • getByRemoteID(id: number): Blip | null
  • Gets the blip with the given remote id

    Parameters

    • id: number

    Returns Blip | null

Static getByScriptID

  • getByScriptID(scriptID: number): Blip | null
  • Retrieves the blip from the pool.

    Parameters

    • scriptID: number

      The script id of the blip.

    Returns Blip | null

    Entity if it was found, otherwise null.