В теме

FreX

Активный
Автор темы
130
37
Версия MoonLoader
Другое
Lua:
if isKeyJustPressed(VK_NUMPAD3) then
            sampSendChat('/newsredak')
Помогите как сделать так чтобы после нажатии на 3 в numpad е с задержко в 100 мс нажимался ентер? Я новичок в луа нигде не нашел прошу помоши тут
 
  • Клоун
Реакции: XRLM
Хз, не нашёл способа по NumPad, так что держи просто на 3 (под блоком F-клавиш).
Lua:
require "lib.moonloader"
local keys = require "vkeys"


function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
        if not sampIsChatInputActive() and not sampIsDialogActive() and not sampIsScoreboardOpen() and not isSampfuncsConsoleActive() then
                if isKeyJustPressed(VK_3) then
                lua_thread.create(function()
                    wait(100)
                    sampSendChat("/newsredak")
                end)
            end
        end
    end
end
 
  • Bug
Реакции: VanoKLR, minxty и MLycoris