addEventHandler('onWindowMessage', function(msg, param)
if msg == 0x020a --[[ WM_MOUSEWHEEL ]] then
local Type = { Down = 4287102976, Up = 7864320 }
print('Ты прокрутил колесико', param == Type.Down and 'ВНИЗ' or 'ВВЕРХ')
end
end)
-- или
local mwheel = getMousewheelDelta()
if mwheel ~= 0 then
print('Ты прокрутил колесико', mwheel > 0 and 'ВНИЗ' or 'ВВЕРХ')
end