util.input.set_cursor_position
Client
Moves the cursor to a specific position relative to the root viewport
Syntax
local status = util.input.set_cursor_position(
position
)Parameters
| Type | Name | Description |
|---|---|---|
vector2 | position | Target cursor position as {x, y} in pixels, relative to the root viewport |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
util.input.set_cursor_position({100, 100})