Hello there!
For some reason, if you hit certain amount of lines for DrawText() function, the rest of the text tends to be broken. As you can see on the screenshot below, some last lines go straight to the upper left corner of my screen.
Function I use for printing 3D text:
function Draw3DTextTT(x,y,z,textInput,colour,fontId,scaleX,scaleY)
local px,py,pz=table.unpack(GetGameplayCamCoords())
local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)
local scale = (1/dist)*20
local fov = (1/GetGameplayCamFov())*100
local scale = scale*fov
SetTextScale(scaleX*scale, scaleY*scale)
SetTextFont(fontId)
SetTextProportional(1)
local colourr,colourg,colourb,coloura = table.unpack(colour)
SetTextColour(colourr,colourg,colourb, coloura)
SetTextDropshadow(2, 1, 1, 1, 255)
SetTextEdge(3, 0, 0, 0, 150)
SetTextDropShadow()
SetTextOutline()
SetTextEntry("STRING")
SetTextCentre(1)
AddTextComponentString(textInput)
SetDrawOrigin(x,y,z+2, 0)
DrawText(0.0, 0.0)
ClearDrawOrigin()
end
So each component is drawn separately by calling this function in for a, b in pairs(something) do loop. Is there any solution to this issue? Thanks in advance ![]()
