Class TextLabel
Inheritance
BaseObject
TextLabel
Inherited Members
WorldObject.type
WorldObject.valid
WorldObject.id
WorldObject.destroy
WorldObject.getMetaDataKeys
WorldObject.getSyncedMeta
WorldObject.hasSyncedMeta
WorldObject.getSyncedMetaKeys
WorldObject.refCount
Package: @altmp/altv-types
Syntax
class TextLabel extends WorldObject
Constructors
|
Improve this Doc
View Source
TextLabel(string, string, number, number, IVector3, IVector3, RGBA, number, RGBA, boolean, number)
Declaration
public TextLabel(text: string, fontName: string, fontSize: number, scale: number, pos: IVector3, rot: IVector3, color: RGBA, outlineWidth: number, outlineColor: RGBA, useStreaming?: boolean, streamingDistance?: number): TextLabel
Parameters
Type |
Name |
Description |
string |
text |
|
string |
fontName |
|
number |
fontSize |
|
number |
scale |
|
IVector3 |
pos |
|
IVector3 |
rot |
|
RGBA |
color |
|
number |
outlineWidth |
|
RGBA |
outlineColor |
|
boolean |
useStreaming |
|
number |
streamingDistance |
|
|
Improve this Doc
View Source
TextLabel(string, string, number, number, IVector3, IVector3, RGBA, number, RGBA, boolean, number)
Declaration
public TextLabel(text: string, fontName: string, fontSize: number, scale: number, pos: IVector3, rot: IVector3, color: RGBA, outlineWidth: number, outlineColor: RGBA, useStreaming?: boolean, streamingDistance?: number): TextLabel
Parameters
Type |
Name |
Description |
string |
text |
|
string |
fontName |
|
number |
fontSize |
|
number |
scale |
|
IVector3 |
pos |
|
IVector3 |
rot |
|
RGBA |
color |
|
number |
outlineWidth |
|
RGBA |
outlineColor |
|
boolean |
useStreaming |
|
number |
streamingDistance |
|
Properties
|
Improve this Doc
View Source
all
Declaration
public readonly static all: readonly TextLabel[]
Property Value
|
Improve this Doc
View Source
visible
Declaration
Property Value
|
Improve this Doc
View Source
color
Declaration
Property Value
|
Improve this Doc
View Source
outlineColor
Declaration
public outlineColor: RGBA
Property Value
|
Improve this Doc
View Source
outlineWidth
Declaration
public outlineWidth: number
Property Value
|
Improve this Doc
View Source
font
Declaration
Property Value
|
Improve this Doc
View Source
fontSize
Declaration
Property Value
|
Improve this Doc
View Source
scale
Declaration
Property Value
|
Improve this Doc
View Source
align
Declaration
public align: TextLabelAlignment
Property Value
|
Improve this Doc
View Source
text
Declaration
Property Value
|
Improve this Doc
View Source
rot
Declaration
Property Value
|
Improve this Doc
View Source
isGlobal
Declaration
public readonly isGlobal: boolean
Property Value
|
Improve this Doc
View Source
target
Declaration
public readonly target: Player
Property Value
|
Improve this Doc
View Source
isStreamedIn
Declaration
public readonly isStreamedIn: boolean
Property Value
|
Improve this Doc
View Source
streamingDistance
Declaration
public readonly streamingDistance: number
Property Value
|
Improve this Doc
View Source
faceCamera
Declaration
public faceCamera: boolean
Property Value
Methods
|
Improve this Doc
View Source
getByID(number)
Declaration
public static getByID(id: number): null | TextLabel
Parameters
Type |
Name |
Description |
number |
id |
|
Returns