Utils

You can see some utils functions

AAS.LoadFonts(itemNameScale)

Load addon fonts

Types

Arguments

Descriptions

Optional

itemNameScale

The item name scale (you have to responsive it with AAS.ScrH)

✔️

AAS.BreakText(text, max)

Break with \n the text after x characters in the line

Types

Arguments

Descriptions

Optional

text

The text to break

max

The max of characters by line

Return :

Types

Parameters

Descriptions

newText

The broken text

Example:

local text = "Lorem ipsum dolor sit amet, consectetur."

local breakText = AAS.BreakText(text, 25) -- Return a text with max 25 characters by lines
hook.Add("HUDPaint", "AAS:Documentation:BreakText", function()

    print(breakText)
    draw.DrawText(breakText, "DermaDefault", ScrW()/2, 50, Color(255, 255, 255), TEXT_ALIGN_CENTER)
end)

Output:

Lorem ipsum dolor sit\n
amet, consectetur.

AAS.ConvertVector(pos, offset, ang)

Convert the Vector with the offset

Types

Arguments

Descriptions

Optional

pos

The vector to convert

offset

The offset

ang

The angle

Return :

Types

Parameters

Descriptions

newVector

The converted vector

AAS.ConvertAngle(ang, offset)

Convert the Angle with the offset

Types

Arguments

Descriptions

Optional

ang

The angle to convert

offset

The offset

Return :

Types

Parameters

Descriptions

newAng

The converted angle

AAS.GetTableById(uniqueId)

Get the item table from the uniqueId

Types

Arguments

Descriptions

Optional

uniqueId

The uniqueId where you want to get the item table

Return :

Types

Parameters

Descriptions

itemTable

The item table (or {} if not found)

Last updated

Was this helpful?