I am trying to make a simple billboard but have stumbled across an issue where by if the server has a long name like most it will stick off the edge like in this picture:
Or on the other hand is there a way to cut it off at the end automatically with a … or something similar,
Here is a snip of my code:
local pos = self:GetPos()
local ang = self:GetAngles()
local slots = game.MaxPlayers()
local currentplys = player.GetCount()
ang:RotateAroundAxis(ang:Up(),90)
cam.Start3D2D(pos+ang:Up()*1.6,ang,0.1)
draw.RoundedBox(0,0-710,0-475,1420,945,Color(0,0,0))
draw.SimpleTextOutlined("Welcome to, ".. GetHostName(),"h1",0-675,0-425,Color(0,0,0),0,1,1,Color(0,255,0))
draw.SimpleTextOutlined(currentplys .."/".. slots .." players","h2",575,425,Color(0,0,0),1,1,1,Color(0,255,0))
cam.End3D2D()