require "lib.moonloader" function main() while not isSampAvailable() do wait(100) end while true do wait(0) -- Срабатывает при нажатии F11 if wasKeyPressed(VK_F11) and not sampIsChatInputActive() and not sampIsDialogActive() then -- Скрываем радар и чат displayHud(false) sampSetChatDisplayMode(0) wait(100) -- Пауза 0.1 сек для обновления кадра -- Делаем стандартный скриншот SA-MP (эмуляция F8) setVirtualKeyDown(VK_F8, true) wait(50) setVirtualKeyDown(VK_F8, false) wait(150) -- Ждём сохранения снимка -- Возвращаем радар и чат обратно displayHud(true) sampSetChatDisplayMode(2) end end end