# sendDuiMouseWheel (Client)

> Scrolls a dui's page with the mouse wheel.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Web interface
- **URL**: https://wiki.mymp.gg/en/sendDuiMouseWheel

## Syntax

```lua
bool sendDuiMouseWheel(dui dui, int x, int y, int delta)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `dui` | `dui` | The dui. |
| `x` | `int` | Position on the page, in pixels from its top-left corner. |
| `y` | `int` | Position on the page, in pixels from its top-left corner. |
| `delta` | `int` | How far to scroll vertically. Positive goes up, negative goes down. |

## Returns

`true` if it was sent. `false` with an argument that is not a dui (logs a warning).

## Example

```lua
local dui = createDui("https://example.com", 800, 600)
bindKey("mouse_wheel_down", "down", function()
    sendDuiMouseWheel(dui, 400, 300, -120)
end)
```

## See also

- [sendDuiMouseMove (Client)](https://wiki.mymp.gg/en/sendDuiMouseMove.md): Moves the mouse pointer over a dui's page.
- [sendDuiMouseButton (Client)](https://wiki.mymp.gg/en/sendDuiMouseButton.md): Presses or releases a mouse button over a dui's page.
- [createDui (Client)](https://wiki.mymp.gg/en/createDui.md): Opens a web page off screen, with a transparent background, and gives it back as an image that can be drawn.
