gfx.drawText is the most up-to-date API that draws to the screen. The screen is redrawn in every tick though, so you have to call it every tick one way or another. Doing it in a function that you later register as a step handler is what makes the most sense.
tpt.register_step(function()
gfx.drawText(100, 100, "Hello World!")
end)
LBPHacker:
gfx.drawText is the most up-to-date API that draws to the screen. The screen is redrawn in every tick though, so you have to call it every tick one way or another. Doing it in a function that you later register as a step handler is what makes the most sense.
tpt.register_step(function()
gfx.drawText(100, 100, "Hello World!")
end)