SetMouseLocation

From Onset Developer Wiki
SetMouseLocation

Type: Function
Context: Client
Introduced: v1.0

Description

Sets the cursor's position on the screen. Only works within viewport aswell

Syntax

SetMouseLocation(x, y)

Parameters

  • mouseX
    The X coordinate to move the cursor to.
  • mouseY
    The Y coordinate to move the cursor to.


Example

SetMouseLocation(50,50)