function getAllTextdraws(a,b)
a = a or 1
b = b or 5000
local vector3d = require 'vector3d'
local res = {}
for id = a,b do
if sampTextdrawIsExists(id) then
local model, rotX, rotY, rotZ, zoom, clr1, clr2 = sampTextdrawGetModelRotationZoomVehColor(id)
local box, color, sizeX, sizeY = sampTextdrawGetBoxEnabledColorAndSize(id)
local letterX,letterY,letterColor = sampTextdrawGetLetterSizeAndColor(id)
local shadow,shadowColor = sampTextdrawGetShadowColor(id)
local outline,outlineColor = sampTextdrawGetOutlineColor(id)
local x,y = convertGameScreenCoordsToWindowScreenCoords(sampTextdrawGetPos(id))
res[id] = {
text = sampTextdrawGetString(id),
modelId = model,
rotation = {x=rotX,y=rotY,z=rotZ},
zoom = zoom,
box = box,
boxColor = boxColor,
boxSize = {x=sizeX,y=sizeY},
letterSize = {x=letterX,y=letterY},
letterColor = letterColor,
shadow = shadow,
shadowColor = shadowColor,
outline = outline,
outlineColor = outlineColor,
position = {x=x,y=y},
}
end
end
return res
end