<?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=ServerProject+vs+DDoS</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=ServerProject+vs+DDoS"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/ServerProject_vs_DDoS"/>
	<updated>2026-04-11T05:19:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37602</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37602"/>
		<updated>2013-11-15T22:39:21Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Useful Function}}&lt;br /&gt;
This function allows you to get elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example is outputting on chatbox &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting our's message.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37601</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37601"/>
		<updated>2013-11-15T22:38:14Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
This function allows you to get elements in dimension.&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get all elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example is outputting on chatbox &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting our's message.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37600</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37600"/>
		<updated>2013-11-15T22:26:52Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get all elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example is outputting on chatbox &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting our's message.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37599</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37599"/>
		<updated>2013-11-15T22:25:04Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get all elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
[/lua]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example is outputting on chatbox &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting our's message.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37598</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37598"/>
		<updated>2013-11-15T22:24:38Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get all elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
[/lua]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example is outputting on chatbox &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting our's message.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37597</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37597"/>
		<updated>2013-11-15T22:24:28Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get all elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
[/lua]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example is outputting on chatbox &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting our's message.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37596</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37596"/>
		<updated>2013-11-15T22:24:18Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get all elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
[/lua]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example is outputting on chatbox &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting our's message.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37595</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37595"/>
		<updated>2013-11-15T22:22:55Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get all elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Serverside Script&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
[/lua]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example sets the player's minute duration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting a message &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37594</id>
		<title>GetElementsInDimension</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementsInDimension&amp;diff=37594"/>
		<updated>2013-11-15T22:21:35Z</updated>

		<summary type="html">&lt;p&gt;ServerProject vs DDoS: Created page with &amp;quot;{{Useful Function}} &amp;lt;lowercasetitle/&amp;gt; __NOTOC__ This function allows you to get all elements in dimension.   '''Important Note:''' Remember that the element type which you type m...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get all elements in dimension.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Important Note:''' Remember that the element type which you type must be a '''string'''!.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getElementsInDimension( string theType, int dimension )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theType''': The element type which you want to get.&lt;br /&gt;
* '''dimension''': The dimension from which you wanna get your elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Serverside Script&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside Script&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getElementsInDimension(theType,dimension)&lt;br /&gt;
    local elementsInDimension = { }&lt;br /&gt;
      for key, value in ipairs(getElementsByType(theType)) do&lt;br /&gt;
        if getElementDimension(value)==dimension then&lt;br /&gt;
        table.insert(elementsInDimension,value)&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
      return elementsInDimension&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example sets the player's minute duration.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayers()&lt;br /&gt;
    local players = getElementsInDimension(&amp;quot;player&amp;quot;,2) -- Getting the players in dimension 2.&lt;br /&gt;
      for key, value in ipairs(players) do&lt;br /&gt;
      outputChatBox(&amp;quot;You are in correct dimension!&amp;quot;,value) -- Outputting a message &amp;quot;You are in correct dimension!&amp;quot; for players in dimension 2.&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: xScatta&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>ServerProject vs DDoS</name></author>
	</entry>
</feed>