guiFocus | Multi Theft Auto: Wiki Skip to content

guiFocus

Client-side
Server-side
Shared

Manual Review Required

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


This function focuses a defocused GUI element. Used primarily for edit fields and memos.

OOP Syntax Help! I don't understand this!

Syntax

bool guiFocus ( element guiElement )
Required Arguments
  • guiElement: the GUI element that you want to focus

Returns

  • bool: value

Returns true if the function was successful, false otherwise.

Code Examples

shared
local edit= guiCreateMemo ( 0.4, 0.4, 0.4, 0.08, "it's edit!", true )
guiFocus(edit)

See Also

GUI Functions