local font = renderCreateFont('Arial', 13, 5)
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
renderFontDrawText(font, '3d text count:'..get3dTextCount(), 100, 100, 0xFFFFFFFF, 0x90000000)
end
end
function get3dTextCount()
local count = 0
for i = 0, 4096 do
if sampIs3dTextDefined(i) then
count = count + 1
end
end
return count
end