<?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=Skejt23</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=Skejt23"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Skejt23"/>
	<updated>2026-05-10T23:08:56Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiSetEnabled&amp;diff=20677</id>
		<title>GuiSetEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiSetEnabled&amp;diff=20677"/>
		<updated>2009-07-19T14:37:53Z</updated>

		<summary type="html">&lt;p&gt;Skejt23: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function enables/disables a GUI element. A disabled GUI element can't be used, gets a gray aspect and doesn't receive any events.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiSetEnabled ( element guiElement, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''guiElement:''' the GUI element you wish to enable or disable&lt;br /&gt;
*'''enabled:''' the new state&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If the function succeeds it returns ''true'', if it fails it returns ''false''.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function ChangeMyButtonEnabled ( )        &lt;br /&gt;
        if ( guiGetEnabled ( MyButton ) == true ) then -- check if the element is enabled           &lt;br /&gt;
                guiSetEnabled ( MyButton, false ) -- if it is, we disable it&lt;br /&gt;
        else              &lt;br /&gt;
                guiSetEnabled ( MyButton, true ) -- if not, we make it enabled&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
MyGuiWindow = guiCreateWindow(254,206,478,306,&amp;quot;Awesome Gui Window&amp;quot;,false) -- Your gui window&lt;br /&gt;
MyButton = guiCreateButton(0.477,0.8268,0.1946,0.0784,&amp;quot;Hello World!&amp;quot;,true,MyGuiWindow) -- Creates a button in your gui window&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>Skejt23</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGetEnabled&amp;diff=20676</id>
		<title>GuiGetEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGetEnabled&amp;diff=20676"/>
		<updated>2009-07-19T14:35:58Z</updated>

		<summary type="html">&lt;p&gt;Skejt23: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function determines if a GUI element is enabled.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiGetEnabled ( element guiElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''guiElement:''' the GUI element to be checked.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the element is enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function ChangeMyButtonEnabled ( )        &lt;br /&gt;
        if ( guiGetEnabled ( MyButton ) == true ) then -- check if the element is enabled           &lt;br /&gt;
                guiSetEnabled ( MyButton, false ) -- if it is, we disable it&lt;br /&gt;
        else              &lt;br /&gt;
                guiSetEnabled ( MyButton, true ) -- if not, we make it enabled&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
MyGuiWindow = guiCreateWindow(254,206,478,306,&amp;quot;Awesome Gui Window&amp;quot;,false) -- Your gui window&lt;br /&gt;
MyButton = guiCreateButton(0.477,0.8268,0.1946,0.0784,&amp;quot;Hello World!&amp;quot;,true,MyGuiWindow) -- Creates a button in your gui window&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Skejt23</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGetEnabled&amp;diff=20667</id>
		<title>GuiGetEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGetEnabled&amp;diff=20667"/>
		<updated>2009-07-19T04:59:08Z</updated>

		<summary type="html">&lt;p&gt;Skejt23: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function determines if a GUI element is enabled.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiGetEnabled ( element guiElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''guiElement:''' the GUI element to be checked.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the element is enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function ChangeMyButtonEnabled ( )        &lt;br /&gt;
        if ( guiGetEnabled ( MyButton ) == true ) then -- check if the element is enabled           &lt;br /&gt;
                guiSetEnabled ( MyButton, false ) -- if it is, we disable it&lt;br /&gt;
        else              &lt;br /&gt;
                guiSetEnabled ( MyButton, true ) -- if not, we make it enabled&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
MyGuiWindow = guiCreateWindow(254,206,478,306,&amp;quot;Awesome Gui Window&amp;quot;,false) -- Your gui window&lt;br /&gt;
MyButton = guiCreateButton(0.477,0.8268,0.1946,0.0784,&amp;quot;Hello World!&amp;quot;,true,MyGuiWindow) -- Creates a button in your gui window&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Skejt23</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiSetEnabled&amp;diff=20666</id>
		<title>GuiSetEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiSetEnabled&amp;diff=20666"/>
		<updated>2009-07-19T04:57:55Z</updated>

		<summary type="html">&lt;p&gt;Skejt23: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function enables/disables a GUI element. A disabled GUI element can't be used, gets a gray aspect and doesn't receive any events.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiSetEnabled ( element guiElement, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''guiElement:''' the GUI element you wish to enable or disable&lt;br /&gt;
*'''enabled:''' the new state&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If the function succeeds it returns ''true'', if it fails it returns ''false''.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function ChangeMyButtonEnabled ( )        &lt;br /&gt;
        if ( guiGetEnabled ( MyButton ) == true ) then -- check if the element is enabled           &lt;br /&gt;
                guiSetEnabled ( MyButton, false ) -- if it is, we disable it&lt;br /&gt;
        else              &lt;br /&gt;
                guiSetEnabled ( MyButton, true ) -- if not, we make it enabled&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
MyGuiWindow = guiCreateWindow(254,206,478,306,&amp;quot;Awesome Gui Window&amp;quot;,false) -- Your gui window&lt;br /&gt;
MyButton = guiCreateButton(0.477,0.8268,0.1946,0.0784,&amp;quot;Hello World!&amp;quot;,true,MyGuiWindow) -- Creates a button in your gui window&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>Skejt23</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiSetEnabled&amp;diff=20665</id>
		<title>GuiSetEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiSetEnabled&amp;diff=20665"/>
		<updated>2009-07-19T04:55:44Z</updated>

		<summary type="html">&lt;p&gt;Skejt23: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function enables/disables a GUI element. A disabled GUI element can't be used, gets a gray aspect and doesn't receive any events.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiSetEnabled ( element guiElement, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''guiElement:''' the GUI element you wish to enable or disable&lt;br /&gt;
*'''enabled:''' the new state&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If the function succeeds it returns ''true'', if it fails it returns ''false''.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
function ChangeMyButtonEnabled ( )        &lt;br /&gt;
        if ( guiGetEnabled ( MyButton ) == true ) then -- check if the element is enabled           &lt;br /&gt;
                guiSetEnabled ( MyButton, false ) -- if it is, we disable it&lt;br /&gt;
        else              &lt;br /&gt;
                guiSetEnabled ( MyButton, true ) -- if not, we make it enabled&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
MyGuiWindow = guiCreateWindow(254,206,478,306,&amp;quot;Awesome Gui Window&amp;quot;,false) -- Your gui window&lt;br /&gt;
MyButton = guiCreateButton(0.477,0.8268,0.1946,0.0784,&amp;quot;Hello World!&amp;quot;,true,MyGuiWindow) -- Creates a button in your gui window&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>Skejt23</name></author>
	</entry>
</feed>