local startTime = 0
local rootElement = getResourceRootElement(getThisResource())
local totalTime = 5000
local sx,sy = guiGetScreenSize()
local px,py = 1600,900
local x,y = (sx/px), (sy/py)
local RR = math.random(100, 255)
local BB = math.random(100, 255)
local GG = math.random(100, 255)
function createText()
local aux = getTickCount() - startTime
dxDrawText("Your Text Here",x*280, y*400, x*1320, y*120, tocolor(RR, BB, GG, 255), 2, "bankgothic" )
if aux > totalTime then
removeEventHandler("onClientRender", root, createText)
end
end
function ShowText()
startTime = getTickCount()
addEventHandler("onClientRender", root, createText)
end
addEventHandler("onClientResourceStart", rootElement, ShowText)