<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsSetClickingSound?action=history&amp;feed=atom</id>
	<title>DgsSetClickingSound - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsSetClickingSound?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSetClickingSound&amp;action=history"/>
	<updated>2026-04-05T19:56:44Z</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=DgsSetClickingSound&amp;diff=73173&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client function}} __NOTOC__ This function applies a clicking sound to a dgs element.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsSetClickingSound( element dgsElement, string soundPath ) &lt;/syntaxhighlight&gt;  ===Required Arguments===  *'''dgsElement:''' The dgs element you want to apply to. *'''soundPath :''' A string of the path of the sound ( url is supported ) '''nil for disabled'''  ===Returns=== Returns ''true'' if succeed, ''false'' otherwise.  ==Example== &lt;sy...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSetClickingSound&amp;diff=73173&amp;oldid=prev"/>
		<updated>2021-12-20T02:42:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ This function applies a clicking sound to a dgs element.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsSetClickingSound( element dgsElement, string soundPath ) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments===  *&amp;#039;&amp;#039;&amp;#039;dgsElement:&amp;#039;&amp;#039;&amp;#039; The dgs element you want to apply to. *&amp;#039;&amp;#039;&amp;#039;soundPath :&amp;#039;&amp;#039;&amp;#039; A string of the path of the sound ( url is supported ) &amp;#039;&amp;#039;&amp;#039;nil for disabled&amp;#039;&amp;#039;&amp;#039;  ===Returns=== Returns &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if succeed, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise.  ==Example== &amp;lt;sy...&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 applies a clicking sound to a dgs element.&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 dgsSetClickingSound( element dgsElement, string soundPath )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dgsElement:''' The dgs element you want to apply to.&lt;br /&gt;
*'''soundPath :''' A string of the path of the sound ( url is supported ) '''nil for disabled'''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if succeed, ''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;
btn = DGS:dgsCreateButton(0.29, 0.30, 0.44, 0.04, &amp;quot;Click me&amp;quot;, true)&lt;br /&gt;
DGS:dgsSetClickingSound(btn,&amp;quot;test.wav&amp;quot;) --You can add a sound file for test&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>