local wm = require 'windows.message'
function onWindowMessage(msg, wparam, lparam)
if isSampAvailable() and not sampIsChatInputActive() and not sampIsDialogActive() and msg == wm.WM_KEYUP and wparam == 0x50 --[[P key]] then
sampSendChat('/anim 1')
end
end