Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
753 B
1
Indexable
Never
require 'lib.moonloader'
local sampev = require 'lib.samp.events'
local vkeys = require 'vkeys'

local active = false

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end

    while true do
        wait(0)
        if isKeyJustPressed(0x58) and not isSampfuncsConsoleActive() and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
            active = not active
            printString('hash cleaner: '..(active and '~g~activated' or '~r~disabled'), 1500)
        end
    end
end

function sampev.onDisplayGameText(style,time,text)
    if text:find("Репорт") then
        sampSendChat('/ot')
    end
end