I think about something like this
I have found it on other topic but it have to restart after map loading:
local sX,sY = guiGetScreenSize()
local counter = 10
local r,g,b = 0,255,0
function drawCounterSHI()
dxDrawText("Your vehicle will change in: "..counter,0,sY*0.8,sX,sY,tocolor(r,g,b,255),2,"default","center","top",false,false,false)
end
function startEverything()
addEventHandler("onClientRender",root,drawCounterSHI)
setTimer(function()
counter = counter - 1
if counter < 0 then
counter = 15
r,g,b = 0,255,0
end
if counter <= 3 then
r,g,b = 255,0,0
end
end,1000,0)
end
addEvent("onCounterStart",true)
addEventHandler("onCounterStart",getRootElement(),startEverything)
Any ideas how to solve it ?
I tried use but i dont know how to do it
resetTimer