<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/CustomWidget:setPosition?action=history&amp;feed=atom</id>
	<title>CustomWidget:setPosition - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/CustomWidget:setPosition?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomWidget:setPosition&amp;action=history"/>
	<updated>2026-04-04T14:15:36Z</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=CustomWidget:setPosition&amp;diff=56279&amp;oldid=prev</id>
		<title>AriosJentu: Created page with &quot;__NOTOC__ {{Client function}} This function set position of Custom Widget on screen.  == Syntax == &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool CustomWidget:setPosition(float X, float Y,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CustomWidget:setPosition&amp;diff=56279&amp;oldid=prev"/>
		<updated>2018-07-20T14:01:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} This function set position of Custom Widget on screen.  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool CustomWidget:setPosition(float X, float Y,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function set position of Custom Widget on screen.&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 CustomWidget:setPosition(float X, float Y, [bool Relative])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments === &lt;br /&gt;
*'''X''' - Position on X axis&lt;br /&gt;
*'''Y''' - Position on Y axis&lt;br /&gt;
&lt;br /&gt;
=== Other Arguments === &lt;br /&gt;
*'''Relative''' - Relative of position (if false, coordinates will be absolute). Default - ''false''.&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
Returns bool value - is position changed.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example creating window, and set position to center of screen:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local Width, Height = guiGetScreenSize()&lt;br /&gt;
&lt;br /&gt;
local Window = CustomWindow.create(0, 0, 100, 100, &amp;quot;Example&amp;quot;, false)&lt;br /&gt;
Window:setPosition(Width/2 - 50, Height/2 - 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{CWSFUNCS}}&lt;/div&gt;</summary>
		<author><name>AriosJentu</name></author>
	</entry>
</feed>