local vkeys = require 'vkeys' -- в самый верх
-- в while true do
if isKeyJustPressed(VK_R) and not sampIsChatInputActive() and not isSampfuncsConsoleActive() and not sampIsDialogActive() and not isPauseMenuActive() then
sampSetChatInputEnabled(true)
sampSetChatInputText("/r ")
end