<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DE/getElementDimension?action=history&amp;feed=atom</id>
	<title>DE/getElementDimension - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DE/getElementDimension?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/getElementDimension&amp;action=history"/>
	<updated>2026-05-02T21:09:33Z</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=DE/getElementDimension&amp;diff=35237&amp;oldid=prev</id>
		<title>Christopher Schmidt at 14:18, 27 March 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/getElementDimension&amp;diff=35237&amp;oldid=prev"/>
		<updated>2013-03-27T14:18:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:18, 27 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[en:setElementDimension]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[en:setElementDimension]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Deutsche Version von Nevo[http://mta-sa.org/index.php?page=User&amp;amp;userID=2315]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-33467:rev-35237 --&gt;
&lt;/table&gt;</summary>
		<author><name>Christopher Schmidt</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/getElementDimension&amp;diff=33467&amp;oldid=prev</id>
		<title>Leyynen: Created page with &quot;__NOTOC__ {{Server client function}} Diese Funktion dient dazu, die Dimension eines Elements abzurufen.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; int getElementDimension ( eleme...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/getElementDimension&amp;diff=33467&amp;oldid=prev"/>
		<updated>2012-09-17T11:48:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Server client function}} Diese Funktion dient dazu, die &lt;a href=&quot;/wiki/DE/Dimension&quot; title=&quot;DE/Dimension&quot;&gt;Dimension&lt;/a&gt; eines Elements abzurufen.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int getElementDimension ( eleme...&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;
{{Server client function}}&lt;br /&gt;
Diese Funktion dient dazu, die [[DE/Dimension|Dimension]] eines Elements abzurufen.&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 getElementDimension ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Benötigte Argumente===&lt;br /&gt;
*'''theElement:''' Das Element, von welchem die Dimension abgerufen werden soll.&lt;br /&gt;
&lt;br /&gt;
===Rückgaben===&lt;br /&gt;
Die Rückgabe ist ein [[DE/Int|Integer]] für die Dimension, wenn 'theElement' ein gültiger Wert ist, ansonsten ist es false.&lt;br /&gt;
&lt;br /&gt;
==Beispiel==&lt;br /&gt;
Dieses Beispiel setzt alle Fahrzeuge, welche einen Fahrer besitzen in die Dimension 1, alle anderen werden in Dimension 0 gesetzt. Das hat den Sinn, dass alle Fussgänger für die Fahrer unsichtbar sind und umgekehrt. Auch wird das das einsteigen als Beifahrer unmöglich, sobald sich ein Fahrer im Fahrzeug befindet, da dann das Fahrzeug für die Fussgänger verschwindet.  &lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot; name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerEnterVehicle ( theVehicle, seat, jacked )&lt;br /&gt;
    if ( getElementDimension ( source ) == 0 and seat == 0 ) then -- wenn sich der Spieler in Dimension 0 befindet und als Fahrer das Fahrzeug betritt.&lt;br /&gt;
        setElementDimension ( source, 1 )     -- Der Spieler wird in Dimension 1 gesetzt.&lt;br /&gt;
        setElementDimension ( theVehicle, 1 ) -- Das Fahrzeug wird ebenfalls in Dimension 1 gesetzt.&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerVehicleEnter&amp;quot;, getRootElement(), onPlayerEnterVehicle )&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
function onPlayerExitVehicle ( theVehicle, seat, jacker )&lt;br /&gt;
    if ( getElementDimension ( source ) == 1 and seat == 0 ) then -- wenn sich der Spieler in Dimension 1 befindet und sich als Fahrer im Fahrzeug befindet.&lt;br /&gt;
        setElementDimension ( source, 0 )     -- Der Spieler wird zurueck in Dimension 0 gesetzt.&lt;br /&gt;
        setElementDimension ( theVehicle, 0 ) -- Das Fahrzeug wird ebenfalls zurueck in Dimension 0 gesetzt.&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerVehicleExit&amp;quot;, getRootElement(), onPlayerExitVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Siehe auch==&lt;br /&gt;
{{DE/Element Funktionen}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[en:setElementDimension]]&lt;/div&gt;</summary>
		<author><name>Leyynen</name></author>
	</entry>
</feed>