OnClientGUIAccepted

From Multi Theft Auto: Wiki
Revision as of 14:30, 2 June 2008 by Awwu (talk | contribs)
Jump to navigation Jump to search

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

Parameters

element editBox
  • editBox: The editbox which had focus.

Source

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

GUI events

Input

GUI


Client event functions

Shared