imgui.OnFrame(function() return frame[0] and not isGamePaused() end, function()
imgui.SetNextWindowPos(imgui.ImVec2(0, 0), imgui.Cond.FirstUseEver, imgui.ImVec2(0.5, 0.5))
imgui.SetNextWindowSize(imgui.ImVec2(315, 35), imgui.Cond.Always)
imgui.Begin('##WaterMarkWindow', frame, imgui.WindowFlags.NoMove + imgui.WindowFlags.NoDecoration)
imgui.End()
end)
require('lib.samp.events').onServerMessage = function(color, text)
if text:find('Операция Мираж') then
frame[0] = true --твой фрейм
local start_time = os.clock()
lua_thread.create(function()
while os.clock() - start_time < 10 do
wait(1000)
end
if frame[0] then
frame[0] = false
end
end)
end
end