guiGetCursorType | Multi Theft Auto: Wiki Skip to content

guiGetCursorType

Client-side
Server-side
Shared

This function is used to get the type of the current cursor image.

OOP Syntax Help! I don't understand this!

  • Method:GuiElement.getCursorType(...)
  • Variable: .cursorType

Syntax

string guiGetCursorType ( )

Returns

Returns a string containing the cursor type.

  • string: cursor type
    • none: Cursor has no image.
    • arrow: Default cursor.
    • sizing_ns: N-S (up-down) sizing cursor.
    • sizing_ew: E-W (left-right) sizing cursor.
    • sizing_nwse: NW-SE diagonal sizing cursor.
    • sizing_nesw: NE-SW diagonal sizing cursor.
    • sizing_eswe: ES-WE horizontal sizing cursor.
    • move: Move cursor.
    • container_drag: Drag container cursor (not in use).
    • segment_moving: Segment moving cursor (not in use).
    • segment_sizing: Segment sizing cursor (not in use).

Code Examples

client

This example prints the current cursor type in the console.

outputConsole(guiGetCursorType())

See Also

GUI Functions