<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Evottaja</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Evottaja"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Evottaja"/>
	<updated>2026-04-24T23:43:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementAlpha&amp;diff=14940</id>
		<title>SetElementAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementAlpha&amp;diff=14940"/>
		<updated>2008-01-13T20:13:55Z</updated>

		<summary type="html">&lt;p&gt;Evottaja: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the alpha(transparency) value for the specified [[element]]. This can be a [[player]] or a [[vehicle]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and client&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementAlpha ( element theElement, int alpha )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' The [[element]] whose alpha you want to set.&lt;br /&gt;
*'''alpha:'''  The alpha value to set.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''false'' if invalid arguments were passed.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example makes the player invisible.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function invisible()&lt;br /&gt;
        setElementAlpha(getLocalPlayer(), 0)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;invisible&amp;quot;, invisible )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>Evottaja</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementAlpha&amp;diff=14939</id>
		<title>GetElementAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementAlpha&amp;diff=14939"/>
		<updated>2008-01-13T20:09:30Z</updated>

		<summary type="html">&lt;p&gt;Evottaja: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the alpha(transparency) value for the specified [[element]]. This can be a [[player]] or a [[vehicle]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and client&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getElementAlpha ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement:''' The [[player]] or [[vehicle]] whose alpha you want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a int(0-255; 0=invisible) indicating the element's alpha, or ''false'' if invalid arguments were passed.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example outputs whether the player is invisible.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function amIVisible()&lt;br /&gt;
	if getElementAlpha(getLocalPlayer()) == 0 then&lt;br /&gt;
            outputChatBox(&amp;quot;I'm invisible&amp;quot;)&lt;br /&gt;
        else&lt;br /&gt;
            outputChatBox(&amp;quot;I'm not invisible&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;amivisible&amp;quot;, amIVisible )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>Evottaja</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUIChanged&amp;diff=14909</id>
		<title>OnClientGUIChanged</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUIChanged&amp;diff=14909"/>
		<updated>2008-01-13T18:36:37Z</updated>

		<summary type="html">&lt;p&gt;Evottaja: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when a memo or an editbox has changed (either by the user or by [[guiSetText]]).&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element theElement&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''theElement''':  The element which was changed.&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an editbox and prints a message when it has changed&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
editBox = guiCreateEdit(0.3,0.1,0.4,0.1,&amp;quot;&amp;quot;,true)&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUIChanged&amp;quot;, editBox, function(element) &lt;br /&gt;
   outputChatBox(&amp;quot;The box now reads: &amp;quot; .. guiGetText(element))&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Evottaja</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUIAccepted&amp;diff=14908</id>
		<title>OnClientGUIAccepted</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUIAccepted&amp;diff=14908"/>
		<updated>2008-01-13T18:36:07Z</updated>

		<summary type="html">&lt;p&gt;Evottaja: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when enter is pressed on an editbox.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element editBox&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''editBox''':  The editbox which had focus.&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an editbox and prints a message when enter is pressed.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
editBox = guiCreateEdit(0.3,0.1,0.4,0.1,&amp;quot;&amp;quot;,true)&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUIAccepted&amp;quot;, editBox, function(element) &lt;br /&gt;
   outputChatBox(guiGetText(element))&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Evottaja</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientMouseLeave&amp;diff=14882</id>
		<title>OnClientMouseLeave</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientMouseLeave&amp;diff=14882"/>
		<updated>2008-01-13T16:33:22Z</updated>

		<summary type="html">&lt;p&gt;Evottaja: New page: {{Client event}} __NOTOC__  This event is fired when the user moves the mouse away from a GUI element.  ==Parameters==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int absoluteX, int absoluteY &amp;lt;/syntaxhighlight&amp;gt;  * '''absoluteX''...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when the user moves the mouse away from a GUI element.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''absoluteX''':  the X position of the mouse cursor, in pixels, measured from the left side of the screen.&lt;br /&gt;
* '''absoluteY''':  the Y position of the mouse cursor, in pixels, measured from the top of the screen.&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the GUI element that the mouse was moved from.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows a message when you move the mouse away from a GUI element.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler('onClientMouseLeave', getRootElement(), function(aX, aY)&lt;br /&gt;
    outputChatBox(&amp;quot;You're no longer pointing at a GUI element at (&amp;quot; .. tostring(aX) .. ', ' .. tostring(aY) .. ')')&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Evottaja</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientMouseEnter&amp;diff=14879</id>
		<title>OnClientMouseEnter</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientMouseEnter&amp;diff=14879"/>
		<updated>2008-01-13T16:26:16Z</updated>

		<summary type="html">&lt;p&gt;Evottaja: New page: {{Client event}} __NOTOC__  This event is fired when the user moves the mouse over a GUI element.  ==Parameters==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int absoluteX, int absoluteY &amp;lt;/syntaxhighlight&amp;gt;  * '''absoluteX''':  t...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when the user moves the mouse over a GUI element.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''absoluteX''':  the X position of the mouse cursor, in pixels, measured from the left side of the screen.&lt;br /&gt;
* '''absoluteY''':  the Y position of the mouse cursor, in pixels, measured from the top of the screen.&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the GUI element that was pointed at.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example shows a message when you move over a GUI element.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler('onClientMouseEnter', getRootElement(), function(aX, aY)&lt;br /&gt;
    outputChatBox(&amp;quot;You're pointing at a GUI element at (&amp;quot; .. tostring(aX) .. ', ' .. tostring(aY) .. ')')&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Evottaja</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUIChanged&amp;diff=14877</id>
		<title>OnClientGUIChanged</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUIChanged&amp;diff=14877"/>
		<updated>2008-01-13T16:07:32Z</updated>

		<summary type="html">&lt;p&gt;Evottaja: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when a memo or an editbox has changed (either by the user or by [[guiSetText]]).&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element theElement&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''theElement''':  The element which was changed.&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an editbox and prints a message when it has changed&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
editBox = guiCreateEdit(0.3,0.1,0.4,0.1,&amp;quot;&amp;quot;,true)&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUIChanged&amp;quot;, editBox, function(element) &lt;br /&gt;
   outputChatBox(&amp;quot;The box now reads: &amp;quot; .. getGuiText(element))&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Evottaja</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUIChanged&amp;diff=14876</id>
		<title>OnClientGUIChanged</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUIChanged&amp;diff=14876"/>
		<updated>2008-01-13T15:50:22Z</updated>

		<summary type="html">&lt;p&gt;Evottaja: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when a memo or an editbox has changed (either by the user or by [[guiSetText]]).&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element theElement&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
* '''theElement''':  The element which was changed.&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an editbox and prints a message when it has changed&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
editBox = guiCreateEdit(0.3,0.1,0.4,0.1,&amp;quot;&amp;quot;,true)&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUIChanged&amp;quot;, editBox, function(element) &lt;br /&gt;
   outputChatBox(&amp;quot;The box now reads: &amp;quot; .. getGuiText(element))&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Evottaja</name></author>
	</entry>
</feed>