<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsGetAddedStyleList?action=history&amp;feed=atom</id>
	<title>DgsGetAddedStyleList - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsGetAddedStyleList?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGetAddedStyleList&amp;action=history"/>
	<updated>2026-05-17T16:01:38Z</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=DgsGetAddedStyleList&amp;diff=71108&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client function}} __NOTOC__ This function get the added style list from DGS global or a specific resource.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsGetAddedStyleLis...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGetAddedStyleList&amp;diff=71108&amp;oldid=prev"/>
		<updated>2021-05-23T07:55:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ This function get the added style list from DGS global or a specific resource.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsGetAddedStyleLis...&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 get the added style list from DGS global or a specific resource.&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 dgsGetAddedStyleList( [ bool includeGlobal = false, resource-data/string bindResource = resource ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''includeGlobal''': A bool indicates whether the returning table includes added styles of &amp;quot;global&amp;quot;.&lt;br /&gt;
*'''bindResource''':  A resource-data you want to get from. For DGS global, use string &amp;quot;'''global'''&amp;quot;. Leave this to ''nil'' to use '''resource'''([[getThisResource]]). [Note: When resource stops, the style will also be unloaded]&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''table'' includes the name of added style, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
&lt;br /&gt;
DGS:dgsAddStyle(&amp;quot;myStyle&amp;quot;, &amp;quot;styleFolder/myStyle&amp;quot;) --Add&lt;br /&gt;
DGS:dgsLoadStyle(&amp;quot;myStyle&amp;quot;) --Load&lt;br /&gt;
&lt;br /&gt;
for name in ipairs(DGS:dgsGetAddedStyleList())&lt;br /&gt;
	outputChatBox(name) &lt;br /&gt;
end&lt;br /&gt;
&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>