OnClientGUIAccepted

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This event is triggered when enter is pressed on an editbox.

Parameters

element editBox
  • editBox: the editbox which had focus.

Source

The source of this event is the editbox which enter was pressed on.

Example

This example creates an editbox and prints a message when enter is pressed.

editBox = guiCreateEdit ( 0.3, 0.1, 0.4, 0.1, "", true )
addEventHandler( "onClientGUIAccepted", editBox,
    function( theElement ) 
        outputChatBox( guiGetText( theElement ) )
    end
)

See Also

Input

GUI


Client event functions