OnClientGUIMove: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: {{Client event}} __NOTOC__ This event is triggered each time the user moves a GUI element. ==Parameters== ''None'' ==Source== The source of this event is ...)
 
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:


==Parameters==  
==Parameters==  
''None''
No parameters.


==Source==
==Source==
Line 10: Line 10:


==Example==  
==Example==  
<syntaxhighlight lang="lua">
This example would output to the chatbox what the player moved.
--TODO
<syntaxhighlight lang="lua">addEventHandler("onClientGUIMove",guiRoot,function()
outputChatBox("You have moved :"..getElementType(source))
end)
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
===GUI events===
{{GUI_events}}
{{GUI_events}}
===Client event functions===
===Client event functions===
{{Client_event_functions}}
{{Client_event_functions}}
[[Category:Needs Example]]

Latest revision as of 14:31, 20 May 2018

This event is triggered each time the user moves a GUI element.

Parameters

No parameters.

Source

The source of this event is the GUI element which was moved.

Example

This example would output to the chatbox what the player moved.

addEventHandler("onClientGUIMove",guiRoot,function()
	outputChatBox("You have moved :"..getElementType(source))
end)

See Also

Input

GUI


Client event functions