So, I want to create a timer to dxDrawText, but I really don't know how. I know it's easy, but what the fuck, really .I am mad.
function panda()
if not x then
local screenWidth, screenHeight = guiGetScreenSize()
function createText ( )
dxDrawText( "Panda is awesome.", 44, screenHeight-43, screenWidth, screenHeight, tocolor ( 111, 155, 0, 255 ), 1, "bankgothic" )
setTimer(removeEventHandler, 2500, 1, "onClientRender", root, createText)
end
addEventHandler("onClientRender",root, createText)
Can anyone help me? the current setTimer doesn't work\remove the text.