<?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=SAES+Willy</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=SAES+Willy"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/SAES_Willy"/>
	<updated>2026-04-22T19:57:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiSetPosition&amp;diff=17795</id>
		<title>GuiSetPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiSetPosition&amp;diff=17795"/>
		<updated>2008-11-01T23:01:28Z</updated>

		<summary type="html">&lt;p&gt;SAES Willy: fixed typo and error in example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the position of a GUI element.&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 guiSetPosition ( element theElement, 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;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''theElement:''' The GUI element to change position for&lt;br /&gt;
*'''x:''' Position over the X axis&lt;br /&gt;
*'''y:''' Position over the Y axis&lt;br /&gt;
*'''relative:''' Bool that indicates if the x/y positions are relative to the screen size&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if the position has been successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a label.  When an element is clicked, the label displays in the position of the element telling you what kind of element you have clicked.  It hides after 5 seconds.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--create an empty label&lt;br /&gt;
local myLabel = guiCreateLabel  ( 0, 0, 1, 1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
function addLabelOnClick ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement )&lt;br /&gt;
	--if an element was clicked on screen&lt;br /&gt;
	if ( clickedElement ) then&lt;br /&gt;
		--retreive the element type&lt;br /&gt;
		local elementType = getElementType ( clickedElement )&lt;br /&gt;
		--change the label text to that element type&lt;br /&gt;
		guiSetText ( myLabel, elementType )&lt;br /&gt;
		--and place it in the position of where the element is&lt;br /&gt;
		guiSetPosition ( myLabel, absoluteX, absoluteY, false )&lt;br /&gt;
		--hide the text by passing an empty string 5 seconds later&lt;br /&gt;
		setTimer ( guiSetText, 5000, 1, myLabel, &amp;quot;&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientClick&amp;quot;, getRootElement(), addLabelOnClick )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>SAES Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:SAES_Willy&amp;diff=17794</id>
		<title>User:SAES Willy</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:SAES_Willy&amp;diff=17794"/>
		<updated>2008-10-29T18:20:43Z</updated>

		<summary type="html">&lt;p&gt;SAES Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;hai.&lt;br /&gt;
&lt;br /&gt;
[[Image:Failed.png]]&lt;/div&gt;</summary>
		<author><name>SAES Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Failed.png&amp;diff=17793</id>
		<title>File:Failed.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Failed.png&amp;diff=17793"/>
		<updated>2008-10-29T18:20:14Z</updated>

		<summary type="html">&lt;p&gt;SAES Willy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>SAES Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:SAES_Willy&amp;diff=17792</id>
		<title>User:SAES Willy</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:SAES_Willy&amp;diff=17792"/>
		<updated>2008-10-28T18:27:54Z</updated>

		<summary type="html">&lt;p&gt;SAES Willy: New page: hai.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;hai.&lt;/div&gt;</summary>
		<author><name>SAES Willy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Modules/MySQL&amp;diff=17791</id>
		<title>Modules/MySQL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Modules/MySQL&amp;diff=17791"/>
		<updated>2008-10-28T18:23:44Z</updated>

		<summary type="html">&lt;p&gt;SAES Willy: fixed download link for the module sdk package&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Available for Windows and Linux servers'''&lt;br /&gt;
&lt;br /&gt;
The MySQL module provides access to MySQL servers. It is included with [http://files.mtasa.com/apps/1.0/dm/ml_devkit.tar.gz the original module SDK package].&lt;br /&gt;
=== Functions ===&lt;br /&gt;
bool [[Modules/MySQL/MysqlCreate|mysqlCreate]] ( nil )&lt;br /&gt;
&lt;br /&gt;
bool [[Modules/MySQL/MysqlOpen|mysqlOpen]] ( mysql, function, host, user, password, database name, port )&lt;br /&gt;
&lt;br /&gt;
nil [[Modules/MySQL/MysqlDestroy|mysqlDestroy]] ( mysql )&lt;br /&gt;
&lt;br /&gt;
bool [[Modules/MySQL/MysqlQuery|mysqlQuery]] ( mysql, function, query )&lt;br /&gt;
&lt;br /&gt;
string [[Modules/MySQL/MysqlSafeString|mysqlSafeString]] ( string )&lt;br /&gt;
&lt;br /&gt;
[[Category:Modules]]&lt;/div&gt;</summary>
		<author><name>SAES Willy</name></author>
	</entry>
</feed>