Hey guys.. I've problem with dxDrawText because it's showing up only for sec and it's dissapears.
I don't know how to make it longer does anyone knows how ? Ah ye I want it to be shown after driving into marker.
Here's script which I wrote
--dxDrawText
local screenW, screenH = guiGetScreenSize()
function tekst()
if source == kaboommarker then
dxDrawText("blablabla", (screenW * 0.0516) - 1, (screenH * 0.5130) - 1, (screenW * 0.3094) - 1, (screenH * 0.6130) - 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false)
dxDrawText("blablabla", (screenW * 0.0516) + 1, (screenH * 0.5130) - 1, (screenW * 0.3094) + 1, (screenH * 0.6130) - 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false)
dxDrawText("blablabla", (screenW * 0.0516) - 1, (screenH * 0.5130) + 1, (screenW * 0.3094) - 1, (screenH * 0.6130) + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false)
dxDrawText("blablabla", (screenW * 0.0516) + 1, (screenH * 0.5130) + 1, (screenW * 0.3094) + 1, (screenH * 0.6130) + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false)
dxDrawText("blablabla", screenW * 0.0516, screenH * 0.5130, screenW * 0.3094, screenH * 0.6130, tocolor(18, 84, 235, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false)
end
end
addEventHandler("onClientRender", root, tekst)
addEventHandler("onClientMarkerHit", root, tekst)