<?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=Icedsun</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=Icedsun"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Icedsun"/>
	<updated>2026-06-03T04:41:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateRadioButton&amp;diff=17172</id>
		<title>GuiCreateRadioButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateRadioButton&amp;diff=17172"/>
		<updated>2008-06-07T10:22:57Z</updated>

		<summary type="html">&lt;p&gt;Icedsun: /* Optional Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs_Checking|The size specifications do not resize the radio buttons, yet they influence their positions on the GUI window. If the radio buttons are not going to be resizable, the sizing options should be turned off to avoid confusion --[[User:Ransom|Ransom]] 16:25, 14 September 2007 (CDT)}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function creates a [[Element/GUI/Radio button|radio button]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateRadioButton ( float x, float y, float width, float height, string text, bool relative, [element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float of the 2D x position of the radio button on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the radio button on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the text field next to the radio button. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the text field next to the radio button. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''text:''' The text to be displayed next to the radio button.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''parent:''' This is the parent that the radio button is attached to. The ''relative'' argument must be true to use this. Sizes and positioning will be made relative to this parent. If ''nil'' parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
''NOTE:'' All radio buttons become grouped together with their parent item.  Only ONE radio button per group/parent will be able to be selected at the same time.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns [[element]] of the radio button if it was created succesfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&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>Icedsun</name></author>
	</entry>
</feed>