Skip to content
On this page

AthenaClient.screen.text ​

Functions ​

addTemporaryText ​

Usage

AthenaClient.screen.text.addTemporaryText(identifier, msg, x, y, scale, r, g, b, a, ms): void

Adds text temporarily on the screen.

Parameters ​

NameType
identifierany
msgany
xany
yany
scaleany
rany
gany
bany
aany
msany

Returns ​

void

Defined in ​

client/screen/text.ts:116


drawRectangle ​

Usage

AthenaClient.screen.text.drawRectangle(pos, size, color): void

Draw a box at a 3D coordinate

Parameters ​

NameTypeDescription
posIVector3A position in the world.
sizeIVector2
colorRGBA

Returns ​

void

Defined in ​

client/screen/text.ts:52


drawRectangle2D ​

Usage

AthenaClient.screen.text.drawRectangle2D(pos, size, color): void

Draw a box on-screen

Parameters ​

NameType
posIVector2
sizeIVector2
colorRGBA

Returns ​

void

Defined in ​

client/screen/text.ts:71


drawText2D ​

Usage

AthenaClient.screen.text.drawText2D(text, pos, scale, color, alignment?, padding?): void

Draw text on your screen in a 2D position with an every tick.

Parameters ​

NameTypeDefault valueDescription
textstringundefined
posIVector2undefined
scalenumberundefined
colorRGBAundefined
alignmentnumber00 Center, 1 Left, 2 Right
paddingnumber0-

Returns ​

void

Defined in ​

client/screen/text.ts:15


drawText3D ​

Usage

AthenaClient.screen.text.drawText3D(text, pos, scale, color): void

Draw stable text in a 3D position with an every tick.

Parameters ​

NameType
textstring
posIVector3
scalenumber
colorRGBA

Returns ​

void

Defined in ​

client/screen/text.ts:83

Created by Stuyk | Est. 2020