script_author(" ")
script_name("QSbiv")
require "lib.moonloader"
local keys = require "vkeys"
local tag = "{FFFFFF}Сбив анимации - {FF0000}[Q]"
local main_color = 0xFFFFFF
local main_color_text = "{5A90CE}"
local white_color = "{FFFFFF}"
local red_color = "{FF0000}"
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("" .. tag, main_color)
while true do
wait(0)
if isKeyJustPressed(VK_Q) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() and not isSampfuncsConsoleActive() then sampSendChat("q") end
end
end
local samp = require("samp.events")
function samp.onShowDialog(dialogId)
if dialogId == 1000 then
sampSendDialogResponse(1000,1,0,0)
return false
end
end