Как сделать активацию курсора на клавишу?

Mico

Активный
Автор темы
252
50
Версия MoonLoader
.026-beta
Как сделать активацию курсора на клавишу?
 

chapo

tg/inst: @moujeek
Всефорумный модератор
9,084
12,092
Lua:
require 'lib.moonloader'
local vk = require 'vkeys'

function main()
    while not isSampAvailable() do wait(0) end
    while true do
        wait(0)
        if wasKeyPressed(vk.VK_F9) then
            if sampIsCursorActive() then
                showCursor(false)
            else
                showCursor(true)
            end
        end
    end
end