- 421
- 38
Lua:
-- конфиг
local cfg = inicfg.load({
ActiveMenu = {
v = '[vkeys.VK_F3]',
},
}, "testsetting")
local bindID = 0
-- main
bindID = rkeys.registerHotKey(ActiveMenu.v, true, function ()
sampSendChat("/b тест")
end)
-- OnDrawFrame
if imgui.HotKey("####", ActiveMenu, tLastKeys, 125) then
rkeys.changeHotKey(bindID, ActiveMenu.v)
inicfg.save(cfg, 'testsetting.ini')
end