Utils
You can see some utils functions
AAS.LoadFonts(itemNameScale)
Load addon fonts
Types
Arguments
Descriptions
Optional
AAS.BreakText(text, max)
Break with \n the text after x characters in the line
You need to use the function in the draw.DrawText function
Return :
Types
Parameters
Descriptions
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
Return :
Types
Parameters
Descriptions
AAS.ConvertAngle(ang, offset)
Convert the Angle with the offset
Return :
Types
Parameters
Descriptions
AAS.GetTableById(uniqueId)
Get the item table from the uniqueId
Types
Arguments
Descriptions
Optional
Return :
Types
Parameters
Descriptions
Last updated
Was this helpful?