ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. guiGetCursorType

Function

guiGetCursorType

ClientInterface (GUI)Identical to MTA:SA

Returns the cursor type matching the control under the mouse: "default", "text" or "sizing".

Syntax

string guiGetCursorType()

Returns

Cursor type.

Example

addEventHandler("onClientRender", root, function()
    if isCursorShowing() then
        dxDrawText(guiGetCursorType(), 10, 10)
    end
end)