- 1,298
- 618
- Версия MoonLoader
- .026-beta
Lua:
local rkeys = require 'rkeys'
imgui.HotKey = require('imgui_addons').HotKey
local tLastKeys = {}
hot_key = {v = {VK_C}}
-- Main
bind = rkeys.registerHotKey(hot_key.v, true, function()
-- Тут действие на HotKey. Принцип как у sampRegisterChatCommand вроде.
end)
-- OnDrawFrame
if imgui.HotKey("##1", hot_key, tLastKeys, 100) then
rkeys.changeHotKey(bind, hot_key.v)
end
Таблица с данными:
Сохранение делаю так:
пожалуйста