local rkeys = require 'rkeys'
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(0) end
rkeys.registerHotKey({6}, 1,
function()
sampAddChatMessage("test", -1)
end)
local font = renderCreateFont("Trebuc", 11, 0x4 + 0x1)
while true do
wait(0)
local keys = rkeys.getKeys(true, true, true)
renderFontDrawText(font, rkeys.getCountKeys() .." :: [" .. table.concat(keys, "] + [") .. "]", 1920 / 1.5 - 50, 1080 / 2, 0xFFFFFFFF)
end
end