OnClientGUIChanged

From Multi Theft Auto: Wiki
Revision as of 18:36, 13 January 2008 by Evottaja (talk | contribs)
Jump to navigation Jump to search

This event is fired when a memo or an editbox has changed (either by the user or by guiSetText).

Parameters

element theElement
  • theElement: The element which was changed.

Example

This example creates an editbox and prints a message when it has changed

editBox = guiCreateEdit(0.3,0.1,0.4,0.1,"",true)
addEventHandler("onClientGUIChanged", editBox, function(element) 
   outputChatBox("The box now reads: " .. guiGetText(element))
end)

See Also

GUI events

Input

GUI


Client event functions