local vkeys = require 'vkeys'
local wm = require 'windows.message'
function onWindowMessage(msg, wparam, lparam)
if msg == wm.WM_KEYDOWN or msg == wm.WM_SYSKEYDOWN then
if sampIsDialogActive() or sampIsChatInputActive() then return end
if wparam == vk_keys.KEY then
sampSendChat('/ot')
end
end
end