local font_flag = require('moonloader').font_flag
local my_font = renderCreateFont('Verdana', 12, font_flag.BOLD + font_flag.SHADOW)
local timer = {}'
function main()
while not isSampAvailable() do wait(200) end
function timer() -- твой код
timer.min, timer.sec = 30, 0
lua_thread.create(function ()
while timer.sec > 0 or timer.min > 0 do
wait(1000)
if timer.sec == 0 then
timer.min = timer.min - 1
timer.sec = 59
else
timer.sec = timer.sec - 1
end
end
end)
end
while true do
renderFontDrawText(my_font, '{00FF00}' ..text , 100, 400, 0xFFFFFFFF)
wait(0)
end
end