<?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=Alsa7er2011</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=Alsa7er2011"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Alsa7er2011"/>
	<updated>2026-04-29T02:50:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCheckBoxGetSelected&amp;diff=27629</id>
		<title>GuiCheckBoxGetSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCheckBoxGetSelected&amp;diff=27629"/>
		<updated>2011-11-10T16:07:10Z</updated>

		<summary type="html">&lt;p&gt;Alsa7er2011: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function gets a checkbox's selection state.&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 guiCheckBoxGetSelected ( element theCheckbox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theCheckbox :''' The checkbox you wish to retrieve the selection state of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the checkbox is selected, ''false'' if it is not.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onClick (button, state, absoluteX, absoluteY) -- on Gui Click Func.&lt;br /&gt;
if ( source == myButton) then&lt;br /&gt;
&lt;br /&gt;
	isSelected = guiCheckBoxGetSelected(CheckBox) -- check if the check box is selected&lt;br /&gt;
	&lt;br /&gt;
	if isSelected == true then -- if selected then&lt;br /&gt;
	outputChatBox(&amp;quot;The CheckBox  is Selected&amp;quot;)&lt;br /&gt;
	else -- else if its not selected&lt;br /&gt;
	outputChatBox(&amp;quot;The CheckBox  is not Selected&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler (&amp;quot;onClientGUIClick&amp;quot;, getRootElement(), onClick)  -- adding event handler for on click&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Alsa7er2011</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCheckBoxGetSelected&amp;diff=27628</id>
		<title>GuiCheckBoxGetSelected</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCheckBoxGetSelected&amp;diff=27628"/>
		<updated>2011-11-10T16:06:54Z</updated>

		<summary type="html">&lt;p&gt;Alsa7er2011: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function gets a checkbox's selection state.&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 guiCheckBoxGetSelected ( element theCheckbox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theCheckbox :''' The checkbox you wish to retrieve the selection state of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the checkbox is selected, ''false'' if it is not.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This page lacks an example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onClick (button, state, absoluteX, absoluteY) -- on Gui Click Func.&lt;br /&gt;
if ( source == myButton) then&lt;br /&gt;
&lt;br /&gt;
	isSelected = guiCheckBoxGetSelected(CheckBox) -- check if the check box is selected&lt;br /&gt;
	&lt;br /&gt;
	if isSelected == true then -- if selected then&lt;br /&gt;
	outputChatBox(&amp;quot;The CheckBox  is Selected&amp;quot;)&lt;br /&gt;
	else -- else if its not selected&lt;br /&gt;
	outputChatBox(&amp;quot;The CheckBox  is not Selected&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler (&amp;quot;onClientGUIClick&amp;quot;, getRootElement(), onClick)  -- adding event handler for on click&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Alsa7er2011</name></author>
	</entry>
</feed>