Change line 4 to your text.
local sx,sy = guiGetScreenSize()
local px,py = 1920,1080
local x,y = (sx/px), (sy/py)
local text = "TEST"
local N = {}
function N2()
local now = getTickCount()
local elapsedTime = now - N.startTime
local duration = N.endTime - N.startTime
local progress = elapsedTime / duration
local width, _, _ = interpolateBetween (
N.startSize[1], 0, 0,
N.endSize[1],0, 0,
progress, "OutQuad")
dxDrawText(text, x*1100, y*24, x*787, x*119, tocolor(255, 255, 255, width), 3.00, "default-bold", "center", "top", false, false, false, false, false)
if now >= N.endTime then
removeEventHandler("onClientRender",root,N2)
end
end
function N1()
local now = getTickCount()
local elapsedTime = now - N.startTime
local duration = N.endTime - N.startTime
local progress = elapsedTime / duration
local width, _, _ = interpolateBetween (
N.startSize[1], 0, 0,
N.endSize[1],0, 0,
progress, "OutQuad")
dxDrawText(text, x*1100, y*24, x*787, x*119, tocolor(255, 255, 255, width), 3.00, "default-bold", "center", "top", false, false, false, false, false)
if now >= N.endTime then
addEventHandler("onClientRender",root,N2)
end
end
addEventHandler( "onClientResourceStart", getRootElement( ),
function ()
N.startTime = getTickCount()
N.startSize = {0}
N.endSize = {255}
N.endTime = N.startTime + 5000
addEventHandler("onClientRender", getRootElement(), N1)
dr = setTimer ( function()
N.startTime = getTickCount()
N.startSize = {255}
N.endSize = {0}
N.endTime = N.startTime + 5000
addEventHandler("onClientRender", getRootElement(), N2)
end, 10000, 1 )
end
)