- Documentation
- Client functions
- guiSetInputEnabled
Function
guiSetInputEnabled
Gives the keyboard to the interface instead of the game (the character ignores keys and binds do not fire).
Syntax
bool guiSetInputEnabled(bool enabled)Arguments
enabledbooltruetakes the keyboard.
Returns
true on success.
Example
local function openPanel()
guiSetVisible(win, true)
showCursor(true)
guiSetInputEnabled(true)
end