<?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=FaiLL</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=FaiLL"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/FaiLL"/>
	<updated>2026-06-22T18:09:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiSetProperty&amp;diff=20290</id>
		<title>GuiSetProperty</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiSetProperty&amp;diff=20290"/>
		<updated>2009-06-29T06:47:46Z</updated>

		<summary type="html">&lt;p&gt;FaiLL: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the value of a specific CEGUI property of a GUI element. For a list of properties and their meaning, see the [http://www.cegui.org.uk/wiki/index.php/SetProperty_(WindowsLook) CEGUI properties wiki page].&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 guiSetProperty ( element guiElement, string property, string value )&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 get a property of.&lt;br /&gt;
*'''property:''' the name of of property you want the value of.&lt;br /&gt;
*'''value:''' the new value for the property.&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;
This example creates a button when the resource starts and defines a console command that toggles it between enabled (clickable) and disabled (not clickable).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    function()&lt;br /&gt;
        button = guiCreateButton(20, 200, 150, 30, &amp;quot;Test&amp;quot;, false)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()) )&lt;br /&gt;
&lt;br /&gt;
    function toogleButton ( )&lt;br /&gt;
        local currentState = guiGetProperty(button, &amp;quot;Disabled&amp;quot;)&lt;br /&gt;
        if currentState == &amp;quot;False&amp;quot; then&lt;br /&gt;
            guiSetProperty(button, &amp;quot;Disabled&amp;quot;, &amp;quot;True&amp;quot;)&lt;br /&gt;
        else&lt;br /&gt;
            guiSetProperty(button, &amp;quot;Disabled&amp;quot;, &amp;quot;False&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;togglebtn&amp;quot;, toogleButton )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>FaiLL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiSetProperty&amp;diff=20289</id>
		<title>GuiSetProperty</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiSetProperty&amp;diff=20289"/>
		<updated>2009-06-29T05:59:51Z</updated>

		<summary type="html">&lt;p&gt;FaiLL: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the value of a specific CEGUI property of a GUI element. For a list of properties and their meaning, see the [http://www.cegui.org.uk/wiki/index.php/SetProperty_(WindowsLook) CEGUI properties wiki page].&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 guiSetProperty ( element guiElement, string property, string value )&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 get a property of.&lt;br /&gt;
*'''property:''' the name of of property you want the value of.&lt;br /&gt;
*'''value:''' the new value for the property.&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;
This example creates a button when the resource starts and defines a console command that toggles it between enabled (clickable) and disabled (not clickable).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    function()&lt;br /&gt;
        button = guiCreateButton(20, 200, 150, 30, &amp;quot;Test&amp;quot;, false)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()) )&lt;br /&gt;
&lt;br /&gt;
    function toogleButton ( )&lt;br /&gt;
        local currentState = guiGetProperty(button, &amp;quot;Disabled&amp;quot;)&lt;br /&gt;
        if currentState == &amp;quot;False&amp;quot; then&lt;br /&gt;
            guiSetProperty(button, &amp;quot;Disabled&amp;quot;, &amp;quot;True&amp;quot;)&lt;br /&gt;
        else&lt;br /&gt;
            guiSetProperty(button, &amp;quot;Disabled&amp;quot;, &amp;quot;False&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;togglebtn&amp;quot;, toogleButton )&lt;br /&gt;
-- There was lots of bugs so i edited this script if you have found more please edit because i am starting scripter. ( faiLL )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>FaiLL</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiSetProperty&amp;diff=20288</id>
		<title>GuiSetProperty</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiSetProperty&amp;diff=20288"/>
		<updated>2009-06-29T05:58:45Z</updated>

		<summary type="html">&lt;p&gt;FaiLL: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the value of a specific CEGUI property of a GUI element. For a list of properties and their meaning, see the [http://www.cegui.org.uk/wiki/index.php/SetProperty_(WindowsLook) CEGUI properties wiki page].&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 guiSetProperty ( element guiElement, string property, string value )&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 get a property of.&lt;br /&gt;
*'''property:''' the name of of property you want the value of.&lt;br /&gt;
*'''value:''' the new value for the property.&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;
This example creates a button when the resource starts and defines a console command that toggles it between enabled (clickable) and disabled (not clickable).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    function()&lt;br /&gt;
        button = guiCreateButton(20, 200, 150, 30, &amp;quot;Test&amp;quot;, false)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()) )&lt;br /&gt;
&lt;br /&gt;
    function toogleButton ( )&lt;br /&gt;
        local currentState = guiGetProperty(button, &amp;quot;Disabled&amp;quot;)&lt;br /&gt;
        if currentState == &amp;quot;False&amp;quot; then&lt;br /&gt;
            guiSetProperty(button, &amp;quot;Disabled&amp;quot;, &amp;quot;True&amp;quot;)&lt;br /&gt;
        else&lt;br /&gt;
            guiSetProperty(button, &amp;quot;Disabled&amp;quot;, &amp;quot;False&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;togglebtn&amp;quot;, toogleButton )&lt;br /&gt;
-- There was lots of bugs so i edited this script if you have found more please edit because i am starting scripter. ( faiLL )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>FaiLL</name></author>
	</entry>
</feed>