<?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=Robert333</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=Robert333"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Robert333"/>
	<updated>2026-06-09T13:30:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetTimer&amp;diff=23862</id>
		<title>SetTimer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetTimer&amp;diff=23862"/>
		<updated>2010-07-06T21:20:08Z</updated>

		<summary type="html">&lt;p&gt;Robert333: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function allows you to trigger a function after a number of milliseconds have elapsed. You can call one of your own functions or a built-in function. For example, you could set a timer to spawn a player after a number of seconds have elapsed.&lt;br /&gt;
&lt;br /&gt;
Once a timer has finished repeating, it no longer exists.&lt;br /&gt;
&lt;br /&gt;
The minimum accepted interval is 50ms.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
timer setTimer ( function theFunction, int timeInterval, int timesToExecute, [ var arguments... ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theFunction:''' The function you wish the timer to call. (Notice: Do not use a 'local' function, it must be global!)&lt;br /&gt;
*'''timeInterval:''' The number of milliseconds that should elapse before the function is called. (the minimum is 50)(1000 milliseconds = 1 second)&lt;br /&gt;
*'''timesToExecute:''' The number of times you want the timer to execute, or 0 for infinite repetitions.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''arguments:''' Any arguments you wish to pass to the function can be listed after the ''timesToExecute'' argument. Note that any tables you want to pass will get cloned, whereas metatables will get lost. Also changes you make in the original table before the function gets called won't get transfered.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[timer]] pointer if the timer was set succesfully, ''false'' if the arguments are invalid or the timer could not be set.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example will output some text after a small delay.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- define function to be called&lt;br /&gt;
function delayedChat ( text )&lt;br /&gt;
	outputChatBox ( &amp;quot;Delayed text: &amp;quot; .. text )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- set a timer so the function is called after 1 second&lt;br /&gt;
setTimer ( delayedChat, 1000, 1, &amp;quot;Hello, World!&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1 second after the line above has been executed, the text ''Delayed text: Hello, World!'' will be displayed in the chat box.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>Robert333</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Character_Skins&amp;diff=23856</id>
		<title>Character Skins</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Character_Skins&amp;diff=23856"/>
		<updated>2010-07-04T18:20:57Z</updated>

		<summary type="html">&lt;p&gt;Robert333: /* Notes: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Skins that the player may use (pedestrian skins).&lt;br /&gt;
&lt;br /&gt;
[[All Skins Page]] - Not recommended for slow Internet&lt;br /&gt;
&lt;br /&gt;
'''Sectioned Skin Pages:'''&lt;br /&gt;
----&lt;br /&gt;
*[[Skins Page 1]]: 7, 9-29&lt;br /&gt;
*[[Skins Page 2]]: 30-41, 43-52&lt;br /&gt;
*[[Skins Page 3]]: 53-64, 66-73, 75-76&lt;br /&gt;
*[[Skins Page 4]]: 77-85, 87-99&lt;br /&gt;
*[[Skins Page 5]]: 100-118, 120-122&lt;br /&gt;
*[[Skins Page 6]]: 123-144&lt;br /&gt;
*[[Skins Page 7]]: 145-148, 150-167&lt;br /&gt;
*[[Skins Page 8]]: 168-189&lt;br /&gt;
*[[Skins Page 9]]: 190-207, 209-212&lt;br /&gt;
*[[Skins Page 10]]: 213-234&lt;br /&gt;
*[[Skins Page 11]]: 235-238, 240-257&lt;br /&gt;
*[[Skins Page 12]]: 258-264, 274-288&lt;br /&gt;
&lt;br /&gt;
==Notes:==&lt;br /&gt;
*12 pages: 266 total.&lt;br /&gt;
&lt;br /&gt;
*IDs 1-8 (except 7) are non-functional&lt;br /&gt;
&lt;br /&gt;
*The following pairs of IDs produce same character (1st ID used in lists, 2nd disabled)&lt;br /&gt;
**118:119 &lt;br /&gt;
**148:149&lt;br /&gt;
&lt;br /&gt;
*Non-working IDs&lt;br /&gt;
1-6&lt;br /&gt;
8&lt;br /&gt;
42&lt;br /&gt;
65&lt;br /&gt;
74&lt;br /&gt;
86&lt;br /&gt;
119&lt;br /&gt;
149&lt;br /&gt;
208&lt;br /&gt;
239&lt;br /&gt;
265-273&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
[[id|ID Lists]]&lt;br /&gt;
&lt;br /&gt;
[[it:Skin Personaggi]]&lt;br /&gt;
[[ru:Character Skins]]&lt;/div&gt;</summary>
		<author><name>Robert333</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGetAlpha&amp;diff=22289</id>
		<title>GuiGetAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGetAlpha&amp;diff=22289"/>
		<updated>2010-01-17T20:27:05Z</updated>

		<summary type="html">&lt;p&gt;Robert333: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Alpha represents the transparency of a gui element.  This function allows retrieval of a gui element's current alpha.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int guiGetAlpha ( element guiElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''guiElement:''' The gui element in which you want to retrieve the alpha of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
{{Needs Checking|Alpha is between 0 and 1, see [[guiSetAlpha]] !}}&lt;br /&gt;
This function returns a positive integer in between 0 and 255 of the gui element's current alpha, or false if it could not be retrieved.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example provides a ''fadeElement'' function, which fades roughly over a period of 4 seconds.  The user may fade in or fade out an element&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fadeElement ( guiElement, state )&lt;br /&gt;
	if state == &amp;quot;out&amp;quot; then --if the user specifies he wants to fade out an element&lt;br /&gt;
		local currentAlpha = guiGetAlpha ( guiElement )--get the current alpha&lt;br /&gt;
		local newAlpha = currentAlpha - 4 --set the alpha to 4 less (more transparent)&lt;br /&gt;
		--ensure that the alpha is not below 0, if it is, set it to 0&lt;br /&gt;
		if newAlpha &amp;lt; 0 then newAlpha = 0 end &lt;br /&gt;
		--set the new alpha&lt;br /&gt;
		guiSetAlpha ( guiElement, newAlpha )&lt;br /&gt;
		--if the new alpha is not completely invisible already&lt;br /&gt;
		if newAlpha ~= 0 then&lt;br /&gt;
			--call this function to fade out some more 50ms later&lt;br /&gt;
			setTimer ( fadeElement, 50, 1, guiElement, state )&lt;br /&gt;
		end&lt;br /&gt;
	elseif state == &amp;quot;in&amp;quot; then --else, if the user specifies he wants to fade out an element&lt;br /&gt;
		local currentAlpha = guiGetAlpha ( guiElement )--get the current alpha&lt;br /&gt;
		local newAlpha = currentAlpha + 4 --set the alpha to 4 more(less transparent)&lt;br /&gt;
		--ensure that the alpha is not above 255, if it is, set it to 255&lt;br /&gt;
		if newAlpha &amp;gt; 255 then newAlpha = 255 end&lt;br /&gt;
		--set the new alpha&lt;br /&gt;
		guiSetAlpha ( guiElement, newAlpha )&lt;br /&gt;
		--if the new alpha is not completely opaque already&lt;br /&gt;
		if newAlpha ~= 255 then&lt;br /&gt;
			--call this function to fade in some more 50ms later&lt;br /&gt;
			setTimer ( fadeElement, 50, 1, guiElement, state )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Robert333</name></author>
	</entry>
</feed>