<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsSetPropertyInherit?action=history&amp;feed=atom</id>
	<title>DgsSetPropertyInherit - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsSetPropertyInherit?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSetPropertyInherit&amp;action=history"/>
	<updated>2026-05-09T23:59:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSetPropertyInherit&amp;diff=62048&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client function}} __NOTOC__ This function sets the value of a specific property of a DGS element and '''affects its children'''. For a list of properties and their meaning,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSetPropertyInherit&amp;diff=62048&amp;oldid=prev"/>
		<updated>2019-01-27T14:08:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ This function sets the value of a specific property of a DGS element and &amp;#039;&amp;#039;&amp;#039;affects its children&amp;#039;&amp;#039;&amp;#039;. For a list of properties and their meaning,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the value of a specific property of a DGS element and '''affects its children'''. For a list of properties and their meaning, see the [[template:DGSPROPERTIES | DGS properties page]].&lt;br /&gt;
&lt;br /&gt;
'''Note: If you push a value improperly, errors or warnings will occur, which may cause lag and debug info spamming.'''&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string dgsSetPropertyInherit ( element/table dgsElement, string property, mixed value [, mixed arg1, mixed arg2 ... ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsElement:''' the DGS element or a list of DGS elements you wish to set a property to.&lt;br /&gt;
*'''property:''' the name of of property you want the value to.&lt;br /&gt;
*'''value:''' the value you want to set.&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''arg...:''' extra value of some properties.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
If the function succeeds, it returns true, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates a label whose text can be changed by itself.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
label = DGS:dgsCreateLabel(20, 200, 150, 30, &amp;quot;Test1&amp;quot;, false)&lt;br /&gt;
label2 = DGS:dgsCreateLabel(0, 800, 150, 30, &amp;quot;Test2&amp;quot;, false, label2)&lt;br /&gt;
dgsSetPropertyInherit(label,&amp;quot;text&amp;quot;,&amp;quot;We are the same&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>