GuiGetInputEnabled
From Multi Theft Auto: Wiki
This function checks whether user input is focused on the GUI or the game.
Syntax
bool guiGetInputEnabled ( )
OOP Syntax Help! I don't understand this!
- Method: GuiElement.isInputEnabled(...)
 - Variable: .inputEnabled
 - Counterpart: guiSetInputEnabled
 
Returns
Returns true if input is focused on GUI, false if it's focused on the game.
Example
This example adds a command with which you can check whether the input is focused on GUI or game.
addCommandHandler( "checkinput", function ()
    if guiGetInputEnabled( ) then
        outputChatBox( "Your input focus is currently on GUI." )
    else 
        outputChatBox( "Your input focus is currently on game." )
    end
end )
See Also
General functions
- guiBlur
 - guiFocus
 - guiGetAlpha
 - guiGetCursorType
 - guiGetEnabled
 - guiGetFont
 - guiGetInputEnabled
 - guiGetInputMode
 - guiGetPosition
 - guiGetProperties
 - guiGetProperty
 - guiGetScreenSize
 - guiGetSize
 - guiGetText
 - guiGetVisible
 - guiMoveToBack
 - guiSetAlpha
 - guiSetEnabled
 - guiSetFont
 - guiSetInputEnabled
 - guiSetInputMode
 - guiSetPosition
 - guiSetProperty
 - guiSetSize
 - guiSetText
 - guiSetVisible
 - isChatBoxInputActive
 - isConsoleActive
 - isDebugViewActive
 - isMainMenuActive
 - isMTAWindowActive
 - isTransferBoxActive
 - setDebugViewActive
 
Browsers
Buttons
Checkboxes
Comboboxes
- guiCreateComboBox
 - guiComboBoxAddItem
 - guiComboBoxClear
 - guiComboBoxGetItemCount
 - guiComboBoxGetItemText
 - guiComboBoxGetSelected
 - guiComboBoxIsOpen
 - guiComboBoxRemoveItem
 - guiComboBoxSetItemText
 - guiComboBoxSetOpen
 - guiComboBoxSetSelected
 
Edit Boxes
Gridlists
- guiCreateGridList
 - guiGridListAddColumn
 - guiGridListAddRow
 - guiGridListAutoSizeColumn
 - guiGridListClear
 - guiGridListGetColumnCount
 - guiGridListGetColumnTitle
 - guiGridListGetColumnWidth
 - guiGridListGetHorizontalScrollPosition
 - guiGridListGetItemColor
 - guiGridListGetItemData
 - guiGridListGetItemText
 - guiGridListGetRowCount
 - guiGridListGetSelectedCount
 - guiGridListGetSelectedItem
 - guiGridListGetSelectedItems
 
- guiGridListGetSelectionMode
 - guiGridListIsSortingEnabled
 - guiGridListGetVerticalScrollPosition
 - guiGridListInsertRowAfter
 - guiGridListRemoveColumn
 - guiGridListRemoveRow
 - guiGridListSetColumnTitle
 - guiGridListSetColumnWidth
 - guiGridListSetHorizontalScrollPosition
 - guiGridListSetItemColor
 - guiGridListSetItemData
 - guiGridListSetItemText
 - guiGridListSetScrollBars
 - guiGridListSetSelectedItem
 - guiGridListSetSelectionMode
 - guiGridListSetSortingEnabled
 - guiGridListSetVerticalScrollPosition
 
Memos
Progressbars
Radio Buttons
Scrollbars
Scrollpanes
- guiCreateScrollPane
 - guiScrollPaneGetHorizontalScrollPosition
 - guiScrollPaneGetVerticalScrollPosition
 - guiScrollPaneSetHorizontalScrollPosition
 - guiScrollPaneSetScrollBars
 - guiScrollPaneSetVerticalScrollPosition
 
Static Images
Tab Panels
Tabs
Text Labels
- guiCreateLabel
 - guiLabelGetColor
 - guiLabelGetFontHeight
 - guiLabelGetTextExtent
 - guiLabelSetColor
 - guiLabelSetHorizontalAlign
 - guiLabelSetVerticalAlign
 
Windows
Input
GUI
- onClientGUIAccepted
 - onClientGUIBlur
 - onClientGUIChanged
 - onClientGUIClick
 - onClientGUIComboBoxAccepted
 - onClientGUIDoubleClick
 - onClientGUIFocus
 - onClientGUIMouseDown
 - onClientGUIMouseUp
 - onClientGUIMove
 - onClientGUIScroll
 - onClientGUISize
 - onClientGUITabSwitched
 - onClientMouseEnter
 - onClientMouseLeave
 - onClientMouseMove
 - onClientMouseWheel