Class Blip
Inheritance
BaseObject
Blip
Inherited Members
WorldObject.deleteSyncedMeta
WorldObject.setSyncedMeta
WorldObject.constructor
WorldObject.type
WorldObject.valid
WorldObject.id
WorldObject.destroy
WorldObject.getMetaDataKeys
WorldObject.getSyncedMeta
WorldObject.hasSyncedMeta
WorldObject.getSyncedMetaKeys
WorldObject.refCount
Package: @altmp/altv-types
Syntax
class Blip extends WorldObject
Properties
|
Improve this Doc
View Source
all
Declaration
public readonly static all: readonly Blip[]
Property Value
Type |
Description |
readonly Blip[] |
|
|
Improve this Doc
View Source
count
Declaration
public readonly static count: number
Property Value
|
Improve this Doc
View Source
routeColor
Declaration
Property Value
|
Improve this Doc
View Source
sprite
Declaration
public sprite: BlipSprite
Property Value
|
Improve this Doc
View Source
size
Declaration
Property Value
|
Improve this Doc
View Source
scale
Declaration
Property Value
|
Improve this Doc
View Source
color
Declaration
public color: number | White | Red | Green | Blue | LightRed | Violet | Pink | LightOrange | LightBrown | LightGreen | LightBlue | LightPurple | DarkPurple | Cyan | LightYellow | Organe | GraniteGreen | DarkBrown | LightGray | LightPink | LemonGreen | ForestGreen | ElectricBlue | BrightPurple | DarkYellow | PinkRed | Orange | BrilliantRose | Salmon | DarkGreen | BlizzardBlue | OracleBlue | Silver | MulberryPink | AltoGray | JellyBeanBlue | DarkOrange | Mamba
Property Value
|
Improve this Doc
View Source
secondaryColor
Declaration
public secondaryColor: number | RGBA
Property Value
Type |
Description |
number | RGBA |
|
|
Improve this Doc
View Source
alpha
Declaration
Property Value
|
Improve this Doc
View Source
flashTimer
Declaration
public flashTimer: number
Property Value
|
Improve this Doc
View Source
flashInterval
Declaration
public flashInterval: number
Property Value
|
Improve this Doc
View Source
route
Declaration
Property Value
|
Improve this Doc
View Source
bright
Declaration
Property Value
|
Improve this Doc
View Source
number
Declaration
Property Value
|
Improve this Doc
View Source
display
Declaration
Property Value
|
Improve this Doc
View Source
showCone
Declaration
Property Value
|
Improve this Doc
View Source
flashes
Declaration
Property Value
|
Improve this Doc
View Source
flashesAlternate
Declaration
public flashesAlternate: boolean
Property Value
|
Improve this Doc
View Source
shortRange
Declaration
public shortRange: boolean
Property Value
|
Improve this Doc
View Source
priority
Declaration
Property Value
|
Improve this Doc
View Source
heading
Declaration
Property Value
|
Improve this Doc
View Source
gxtName
Declaration
Property Value
|
Improve this Doc
View Source
name
Declaration
Property Value
|
Improve this Doc
View Source
pulse
Declaration
Property Value
|
Improve this Doc
View Source
asMissionCreator
Declaration
public asMissionCreator: boolean
Property Value
|
Improve this Doc
View Source
tickVisible
Declaration
public tickVisible: boolean
Property Value
|
Improve this Doc
View Source
headingIndicatorVisible
Declaration
public headingIndicatorVisible: boolean
Property Value
|
Improve this Doc
View Source
outlineIndicatorVisible
Declaration
public outlineIndicatorVisible: boolean
Property Value
|
Improve this Doc
View Source
friendIndicatorVisible
Declaration
public friendIndicatorVisible: boolean
Property Value
|
Improve this Doc
View Source
crewIndicatorVisible
Declaration
public crewIndicatorVisible: boolean
Property Value
|
Improve this Doc
View Source
category
Declaration
Property Value
|
Improve this Doc
View Source
highDetail
Declaration
public highDetail: boolean
Property Value
|
Improve this Doc
View Source
shrinked
Declaration
Property Value
|
Improve this Doc
View Source
attachedTo
Declaration
public attachedTo: null | Entity
Property Value
Type |
Description |
null | Entity |
|
|
Improve this Doc
View Source
visible
Declaration
Property Value
|
Improve this Doc
View Source
blipType
Declaration
public blipType: BlipType
Property Value
|
Improve this Doc
View Source
isFriendly
Declaration
public isFriendly: boolean
Property Value
|
Improve this Doc
View Source
isAttached
Declaration
public readonly isAttached: boolean
Property Value
|
Improve this Doc
View Source
isGlobal
Declaration
Property Value
|
Improve this Doc
View Source
targets
Declaration
public readonly targets: readonly Player[]
Property Value
Type |
Description |
readonly Player[] |
|
Methods
|
Improve this Doc
View Source
getByID(number)
Declaration
public static getByID(id: number): null | Blip
Parameters
Type |
Name |
Description |
number |
id |
|
Returns
Type |
Description |
null | Blip |
|
|
Improve this Doc
View Source
fade(number, number)
Declaration
public fade(opacity: number, duration: number): void
Parameters
Type |
Name |
Description |
number |
opacity |
|
number |
duration |
|
|
Improve this Doc
View Source
addTarget(Player)
Declaration
public addTarget(player: Player): void
Parameters
Type |
Name |
Description |
Player |
player |
|
|
Improve this Doc
View Source
removeTarget(Player)
Declaration
public removeTarget(player: Player): void
Parameters
Type |
Name |
Description |
Player |
player |
|
|
Improve this Doc
View Source
Declaration
public deleteMeta(key: string): void
Parameters
Type |
Name |
Description |
string |
key |
|
|
Improve this Doc
View Source
Declaration
public deleteMeta<K extends never>(key: K): void
Parameters
Type |
Name |
Description |
K |
key |
|
|
Improve this Doc
View Source
Declaration
public hasMeta(key: string): boolean
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public hasMeta<K extends never>(key: K): boolean
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<K extends string>(key: Exclude<K, never>): unknown
Parameters
Type |
Name |
Description |
Exclude<K, never> |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<K extends never>(key: K): undefined | ICustomBlipMeta[K]
Parameters
Type |
Name |
Description |
K |
key |
|
Returns
|
Improve this Doc
View Source
Declaration
public getMeta<V extends unknown>(key: string): undefined | V
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Type |
Description |
undefined | V |
|
|
Improve this Doc
View Source
Declaration
public setMeta<K extends string>(key: K, value: InterfaceValueByKey<ICustomBlipMeta, K, unknown, void>): void
Parameters
Type |
Name |
Description |
K |
key |
|
InterfaceValueByKey<ICustomBlipMeta, K, unknown, void> |
value |
|
|
Improve this Doc
View Source
Declaration
public setMeta<K extends never>(key: K, value: ICustomBlipMeta[K]): void
Parameters
|
Improve this Doc
View Source
Declaration
public setMeta<V extends unknown, K extends string>(key: K, value: InterfaceValueByKey<ICustomBlipMeta, K, V, void>): void
Parameters
Type |
Name |
Description |
K |
key |
|
InterfaceValueByKey<ICustomBlipMeta, K, V, void> |
value |
|
|
Improve this Doc
View Source
Declaration
public setMeta(values: MetaValues<ICustomBlipMeta>): void
Parameters