<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/OnDgsRadioButtonChange?action=history&amp;feed=atom</id>
	<title>OnDgsRadioButtonChange - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/OnDgsRadioButtonChange?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsRadioButtonChange&amp;action=history"/>
	<updated>2026-04-30T18:52:02Z</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=OnDgsRadioButtonChange&amp;diff=54193&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client event}} __NOTOC__ This event is triggered each time the dgs radio button state has changed.  ==Parameters==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool state &lt;/syntaxhighlight...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnDgsRadioButtonChange&amp;diff=54193&amp;oldid=prev"/>
		<updated>2018-03-24T03:42:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client event}} __NOTOC__ This event is triggered each time the dgs radio button state has changed.  ==Parameters==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool state &amp;lt;/syntaxhighlight...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This event is triggered each time the dgs radio button state has changed.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool state&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the dgs radio button.&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;
local rb1 = dgsCreateRadioButton(300,300,200,30,&amp;quot;RadioButton Test 1&amp;quot;,false)&lt;br /&gt;
local rb2 = dgsCreateRadioButton(300,320,200,30,&amp;quot;RadioButton Test 2&amp;quot;,false)&lt;br /&gt;
&lt;br /&gt;
function onStateChanged(state)&lt;br /&gt;
	if source == rb1 and state == true then&lt;br /&gt;
		outputChatBox(&amp;quot;Selected RadioButton 1&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onDgsRadioButtonChange&amp;quot;, root, onStateChanged)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===DGS events===&lt;br /&gt;
{{DGSEVENTS}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>