guiSetInputMode | Multi Theft Auto: Wiki Skip to content

guiSetInputMode

Client-side
Server-side
Shared

Pair: guiGetInputMode

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function controls the input mode to define whether or not (and when) keybinds or MTA binds are overridden (disabled) so that text can be input into an editbox, for example. Available input modes are:

Syntax

guiSetInputMode ( )

Code Examples

client
function onClientResourceStartSetGUIInputMode()
guiSetInputMode("no_binds_when_editing") -- Calls guiSetInputMode once and for all to not have to handle binds state dynamically
end
addEventHandler("onClientResourceStart", resourceRoot, onClientResourceStartSetGUIInputMode)

See Also

GUI Functions