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

Function

guiEditGetCaretIndex

ClientInterface (GUI)Identical to MTA:SA

Returns the text cursor position in a field (number of characters before it).

Syntax

int guiEditGetCaretIndex(element theElement)

Arguments

theElementelement
The text field.

Returns

Position.

Example

outputChatBox("Kursor na znaku " .. guiEditGetCaretIndex(edit))