<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/GUI_Classes/CheckBox:Create?action=history&amp;feed=atom</id>
	<title>GUI Classes/CheckBox:Create - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/GUI_Classes/CheckBox:Create?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GUI_Classes/CheckBox:Create&amp;action=history"/>
	<updated>2026-10-27T09:19:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.1</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GUI_Classes/CheckBox:Create&amp;diff=18489&amp;oldid=prev</id>
		<title>50p: /* example to be added */</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GUI_Classes/CheckBox:Create&amp;diff=18489&amp;oldid=prev"/>
		<updated>2009-03-01T14:43:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;example to be added&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pageclass class=&amp;quot;client&amp;quot; subcaption=&amp;quot;GUI Class method&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function creates a [[Element/GUI/Checkbox|CheckBox]] object.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
checkboxObject CheckBox:Create ( float x, float y, float width, float height, string text, bool selected, [ bool relative = false, element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;x:&amp;#039;&amp;#039;&amp;#039; A float of the 2D x position of the checkbox on a player&amp;#039;s screen. This is affected by the &amp;#039;&amp;#039;relative&amp;#039;&amp;#039; argument.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;y:&amp;#039;&amp;#039;&amp;#039; A float of the 2D y position of the checkbox on a player&amp;#039;s screen. This is affected by the &amp;#039;&amp;#039;relative&amp;#039;&amp;#039; argument.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;width:&amp;#039;&amp;#039;&amp;#039; A float of the width of the text field next to the checkbox. This is affected by the &amp;#039;&amp;#039;relative&amp;#039;&amp;#039; argument.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;height:&amp;#039;&amp;#039;&amp;#039; A float of the height of the text field next to the checkbox. This is affected by the &amp;#039;&amp;#039;relative&amp;#039;&amp;#039; argument.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;text:&amp;#039;&amp;#039;&amp;#039; The text to be displayed next to the checkbox.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;selected:&amp;#039;&amp;#039;&amp;#039; A boolean representing whether the checkbox created should be selected by default.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;relative:&amp;#039;&amp;#039;&amp;#039; This is whether sizes and positioning are relative. If this is &amp;#039;&amp;#039;true&amp;#039;&amp;#039;, then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent. Default value is &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;parent:&amp;#039;&amp;#039;&amp;#039; This is the parent that the checkbox is attached to. If the &amp;#039;&amp;#039;relative&amp;#039;&amp;#039; argument is true, sizes and positioning will be made relative to this parent. If the &amp;#039;&amp;#039;relative&amp;#039;&amp;#039; argument is false, positioning will be the number of offset pixels from the parent&amp;#039;s origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;checkboxObject&amp;#039;&amp;#039;&amp;#039; if it was created succesfully &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; otherwise. &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Explain what the example is in a single sentance --&amp;gt;&lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;!-- Add the code below, an emphasis should be on making it clear, not optimized. You could provide two versions if you wish, one clear and well commented, the other optimized --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[GUI_Classes|Back to GUI Classes page]]&lt;br /&gt;
{{GUI_Classes_allfunctions}}&lt;/div&gt;</summary>
		<author><name>50p</name></author>
	</entry>
</feed>