<?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=PLASMA</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=PLASMA"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/PLASMA"/>
	<updated>2026-04-19T03:57:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/engineReplaceModel&amp;diff=36931</id>
		<title>DE/engineReplaceModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/engineReplaceModel&amp;diff=36931"/>
		<updated>2013-08-19T18:00:38Z</updated>

		<summary type="html">&lt;p&gt;PLASMA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Note box|Please note the loading order that is used in the examples as other orders can cause textures, collisions or the DFF not to load due to technical limitations}}&lt;br /&gt;
&lt;br /&gt;
Diese Funktion ersetz ein vorhandes Model mit einer neuen DFF Datei. Es werden momentan Fahrzeuge und Objekte unterstütz.&lt;br /&gt;
&lt;br /&gt;
Seit 1.1.1 unterstütz diese Funktion Peds und Waffenmodelle. Um Waffenmodelle ersetzen zu können, kannst du nicht die Waffen ID's benutzen, sondern die Objekt ID's. Alle Waffenmodelle sind hier zu sehen:  [[Weapons]].&lt;br /&gt;
&lt;br /&gt;
Achtung: Wenn man ein Objekt mit einer eingebauten Collision (Fahrzeuge) ersetz, kann es vorkommen dass die Collision nicht richtig ersetz wurde. Man arbeitet daran die DFF Datei noch einmal zu laden und sie kurz danach zu ersetzen.&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 engineReplaceModel ( dff theModel, int modelID [, bool alphaTransparency = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theModel:''' Das neue Model, welches ein Anderes ersetzen soll.&lt;br /&gt;
*'''modelID:''' Die Model ID welche ersetz werden soll&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
*'''alphaTransparency:''' Set to true to enable special thing&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the model was successfully replaced, ''false'' if it failed for some reason, ie. the DFF or the model ID is not valid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Client-Side example for replacing vehicle model and texture with custom ones.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ReplaceVehicle ( )&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot;, 587 )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEvent ( &amp;quot;replaceVeh&amp;quot;, true )&lt;br /&gt;
addEventHandler ( &amp;quot;replaceVeh&amp;quot;, getRootElement(), ReplaceVehicle )&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;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Server-side example function for triggering the replace.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ReplaceCommand ( )&lt;br /&gt;
triggerClientEvent( &amp;quot;replaceVeh&amp;quot;, getRootElement(), replaceVeh )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;replace&amp;quot;, ReplaceCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Client-Side example for replacing object model, collision and texture with custom ones.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ReplaceObject ( )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD( &amp;quot;MyModel.txd&amp;quot; )&lt;br /&gt;
col = engineLoadCOL( &amp;quot;MyModel.col&amp;quot; )&lt;br /&gt;
dff = engineLoadDFF( &amp;quot;MyModel.dff&amp;quot;, 0 ) --modelid is everytime 0, when you replace no vehicle&lt;br /&gt;
&lt;br /&gt;
engineImportTXD( txd, 1234 )&lt;br /&gt;
engineReplaceCOL( col, 1234 )&lt;br /&gt;
engineReplaceModel( dff, 1234 )-- replace the model at least&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEvent ( &amp;quot;replaceObj&amp;quot;, true )&lt;br /&gt;
addEventHandler ( &amp;quot;replaceObj&amp;quot;, getRootElement(), ReplaceObject )&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;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Server-side example function for triggering the replace.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ReplaceCommand ( )&lt;br /&gt;
triggerClientEvent( &amp;quot;replaceObj&amp;quot;, getRootElement(), replaceObj )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;replace&amp;quot;, ReplaceCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>PLASMA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/engineReplaceModel&amp;diff=36930</id>
		<title>DE/engineReplaceModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/engineReplaceModel&amp;diff=36930"/>
		<updated>2013-08-19T17:59:44Z</updated>

		<summary type="html">&lt;p&gt;PLASMA: Created page with &amp;quot;__NOTOC__  {{Client function}} {{Note box|Please note the loading order that is used in the examples as other orders can cause textures, collisions or the DFF not to load due to ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Note box|Please note the loading order that is used in the examples as other orders can cause textures, collisions or the DFF not to load due to technical limitations}}&lt;br /&gt;
&lt;br /&gt;
Diese Funktion ersetz ein vorhandes Model mit einer neuen DFF Datei. Es werden unterstütz momentan Fahrzeuge und Objekte.&lt;br /&gt;
&lt;br /&gt;
Seit 1.1.1 unterstütz diese Funktion Peds und Waffenmodelle. Um Waffenmodelle ersetzen zu können, kannst du nicht die Waffen ID's benutzen, sondern die Objekt ID's. Alle Waffenmodelle sind hier zu sehen:  [[Weapons]].&lt;br /&gt;
&lt;br /&gt;
Achtung: Wenn man ein Objekt mit einer eingebauten Collision (Fahrzeuge) ersetz, kann es vorkommen dass die Collision nicht richtig ersetz wurde. Man arbeitet daran die DFF Datei noch einmal zu laden und sie kurz danach zu ersetzen.&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 engineReplaceModel ( dff theModel, int modelID [, bool alphaTransparency = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theModel:''' Das neue Model, welches ein Anderes ersetzen soll.&lt;br /&gt;
*'''modelID:''' Die Model ID welche ersetz werden soll&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
*'''alphaTransparency:''' Set to true to enable special thing&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the model was successfully replaced, ''false'' if it failed for some reason, ie. the DFF or the model ID is not valid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Client-Side example for replacing vehicle model and texture with custom ones.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ReplaceVehicle ( )&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot;, 587 )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEvent ( &amp;quot;replaceVeh&amp;quot;, true )&lt;br /&gt;
addEventHandler ( &amp;quot;replaceVeh&amp;quot;, getRootElement(), ReplaceVehicle )&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;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Server-side example function for triggering the replace.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ReplaceCommand ( )&lt;br /&gt;
triggerClientEvent( &amp;quot;replaceVeh&amp;quot;, getRootElement(), replaceVeh )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;replace&amp;quot;, ReplaceCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Client-Side example for replacing object model, collision and texture with custom ones.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ReplaceObject ( )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD( &amp;quot;MyModel.txd&amp;quot; )&lt;br /&gt;
col = engineLoadCOL( &amp;quot;MyModel.col&amp;quot; )&lt;br /&gt;
dff = engineLoadDFF( &amp;quot;MyModel.dff&amp;quot;, 0 ) --modelid is everytime 0, when you replace no vehicle&lt;br /&gt;
&lt;br /&gt;
engineImportTXD( txd, 1234 )&lt;br /&gt;
engineReplaceCOL( col, 1234 )&lt;br /&gt;
engineReplaceModel( dff, 1234 )-- replace the model at least&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEvent ( &amp;quot;replaceObj&amp;quot;, true )&lt;br /&gt;
addEventHandler ( &amp;quot;replaceObj&amp;quot;, getRootElement(), ReplaceObject )&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;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Server-side example function for triggering the replace.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ReplaceCommand ( )&lt;br /&gt;
triggerClientEvent( &amp;quot;replaceObj&amp;quot;, getRootElement(), replaceObj )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;replace&amp;quot;, ReplaceCommand )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>PLASMA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/CreateWater&amp;diff=34991</id>
		<title>DE/CreateWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/CreateWater&amp;diff=34991"/>
		<updated>2013-02-19T18:45:58Z</updated>

		<summary type="html">&lt;p&gt;PLASMA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server Client Funktion}}&lt;br /&gt;
&lt;br /&gt;
Erstellen eines Feldes aus [[Wasser]].&lt;br /&gt;
&lt;br /&gt;
Die höchst mögliche Größe eines Wasserfeldes beträgt 5996x5996. Vorsicht, die Funktion wird wohlmöglich alle x und y Koordinaten in ganzställige Zahlen verändern, da San Andreas eine Begrenzung hat.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;water createWater ( float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3 [, float x4, float y4, float z4 ] [, bool bShallow = false ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:WaterAreas.jpg|thumb|Beispiel eines quadratischen Wasserfeld.|284x230px]]&lt;br /&gt;
&lt;br /&gt;
===Notwendige Argumente===&lt;br /&gt;
*'''x1, y1, z1:''' Untere linke Ecke (south-west).&lt;br /&gt;
*'''x2, y2, z2:''' Untere rechte Ecke (south-east).&lt;br /&gt;
*'''x3, y3, z3:''' Obere linke Ecke (north-west).&lt;br /&gt;
''Achtung: Nur drei Angaben erstellen ein Dreieck!''&lt;br /&gt;
&lt;br /&gt;
===Optionale Argumente===&lt;br /&gt;
*'''x4, y4, z4:''' Obere rechte Ecke (north-east).&lt;br /&gt;
*'''bShallow:''' Muss überprüft werden...&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a water element if successful, ''false'' otherwise. Das Wasserfeld kann mit [[setElementPosition]] die Postion ändern und mit [[destroyElement]] zerstört werden.&lt;br /&gt;
&lt;br /&gt;
==Beispiel== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Beispiel, wie man die komplette San Andreas Karte mit Wasserfeldern bedeckt(Überflutet Städte). Es wird auch [[setWaterLevel]] benutzt, um die Höhe der Wasserfelder zu ändern.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Einstellungen.&lt;br /&gt;
height = 40&lt;br /&gt;
SizeVal = 2998&lt;br /&gt;
-- Definierung der Variablen.&lt;br /&gt;
southWest_X = -SizeVal&lt;br /&gt;
southWest_Y = -SizeVal&lt;br /&gt;
southEast_X = SizeVal&lt;br /&gt;
southEast_Y = -SizeVal&lt;br /&gt;
northWest_X = -SizeVal&lt;br /&gt;
northWest_Y = SizeVal&lt;br /&gt;
northEast_X = SizeVal&lt;br /&gt;
northEast_Y = SizeVal&lt;br /&gt;
&lt;br /&gt;
-- OnClientResourceStart Funktion erstellt das Wasserfeld.&lt;br /&gt;
function thaResourceStarting( )&lt;br /&gt;
    water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height )&lt;br /&gt;
    setWaterLevel ( height )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, thaResourceStarting)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Weitere Funktionen==&lt;br /&gt;
{{Client water functions}}&lt;/div&gt;</summary>
		<author><name>PLASMA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/CreateWater&amp;diff=34990</id>
		<title>DE/CreateWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/CreateWater&amp;diff=34990"/>
		<updated>2013-02-19T18:39:54Z</updated>

		<summary type="html">&lt;p&gt;PLASMA: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
{{Muss überprüft werden!|Benutzen von bShallow ist unbekannt. Diese Einstellung kann die Sichtbarkeit des Wasssers verändern.}}&lt;br /&gt;
&lt;br /&gt;
Erstellen eines Feldes aus [[Wasser]].&lt;br /&gt;
&lt;br /&gt;
Die höchst mögliche Größe eines Wasserfeldes beträgt 5996x5996. Vorsicht, die Funktion wird wohlmöglich alle x und y Koordinaten in ganzställige Zahlen verändern, da San Andreas eine Begrenzung hat.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;water createWater ( float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3 [, float x4, float y4, float z4 ] [, bool bShallow = false ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:WaterAreas.jpg|thumb|Beispiel eines quadratischen Wasserfeld.|284x230px]]&lt;br /&gt;
&lt;br /&gt;
===Notwendige Argumente===&lt;br /&gt;
*'''x1, y1, z1:''' Untere linke Ecke (south-west).&lt;br /&gt;
*'''x2, y2, z2:''' Untere rechte Ecke (south-east).&lt;br /&gt;
*'''x3, y3, z3:''' Obere linke Ecke (north-west).&lt;br /&gt;
''Achtung: Nur drei Angaben erstellen ein Dreieck!''&lt;br /&gt;
&lt;br /&gt;
===Optionale Argumente===&lt;br /&gt;
*'''x4, y4, z4:''' Obere rechte Ecke (north-east).&lt;br /&gt;
*'''bShallow:''' Muss überprüft werden...&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a water element if successful, ''false'' otherwise. Das Wasserfeld kann die mit [[setElementPosition]] Postion ändern und mit [[destroyElement]] zerstört werden.&lt;br /&gt;
&lt;br /&gt;
==Beispiel== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Beispiel, wie man die komplette San Andreas Karte mit Wasserfeldern bedeckt(Überflutet Städte). Es wird auch [[setWaterLevel]] benutzt, um die Höhe der Wasserfelder zu ändern.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Setting water properties.&lt;br /&gt;
height = 40&lt;br /&gt;
SizeVal = 2998&lt;br /&gt;
-- Defining variables.&lt;br /&gt;
southWest_X = -SizeVal&lt;br /&gt;
southWest_Y = -SizeVal&lt;br /&gt;
southEast_X = SizeVal&lt;br /&gt;
southEast_Y = -SizeVal&lt;br /&gt;
northWest_X = -SizeVal&lt;br /&gt;
northWest_Y = SizeVal&lt;br /&gt;
northEast_X = SizeVal&lt;br /&gt;
northEast_Y = SizeVal&lt;br /&gt;
&lt;br /&gt;
-- OnClientResourceStart function that creates the water.&lt;br /&gt;
function thaResourceStarting( )&lt;br /&gt;
    water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height )&lt;br /&gt;
    setWaterLevel ( height )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, thaResourceStarting)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Weitere Funktionen==&lt;br /&gt;
{{Client water functions}}&lt;/div&gt;</summary>
		<author><name>PLASMA</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DE/CreateWater&amp;diff=34989</id>
		<title>DE/CreateWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DE/CreateWater&amp;diff=34989"/>
		<updated>2013-02-19T18:36:26Z</updated>

		<summary type="html">&lt;p&gt;PLASMA: Created page with &amp;quot;__NOTOC__ {{Server client function}}  {{Muss überprüft werden!|Benutzen von bShallow ist unbekannt. Diese Einstellung kann die Sichtbarkeit des Wasssers verändern.}}  Erstelle...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
{{Muss überprüft werden!|Benutzen von bShallow ist unbekannt. Diese Einstellung kann die Sichtbarkeit des Wasssers verändern.}}&lt;br /&gt;
&lt;br /&gt;
Erstellen eines Feldes aus [[Wasser]].&lt;br /&gt;
&lt;br /&gt;
Die höchst mögliche Größe eines Wasserfelds ist 5996x5996. Vorsicht, die Funktion wird wohlmöglich alle x und y Koordinaten in ganzställige Zahlen verändern, da San Andreas eine Begrenzung hat.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;water createWater ( float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3 [, float x4, float y4, float z4 ] [, bool bShallow = false ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:WaterAreas.jpg|thumb|Beispiel eines quadratischen Wasserfeld.|284x230px]]&lt;br /&gt;
&lt;br /&gt;
===Notwendige Argumente===&lt;br /&gt;
*'''x1, y1, z1:''' Untere linke Ecke (south-west).&lt;br /&gt;
*'''x2, y2, z2:''' Untere rechte Ecke (south-east).&lt;br /&gt;
*'''x3, y3, z3:''' Obere linke Ecke (north-west).&lt;br /&gt;
''Achtung: Nur drei Angaben erstellen ein Dreieck!''&lt;br /&gt;
&lt;br /&gt;
===Optionale Argumente===&lt;br /&gt;
*'''x4, y4, z4:''' Obere rechte Ecke (north-east).&lt;br /&gt;
*'''bShallow:''' Muss überprüft werden...&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a water element if successful, ''false'' otherwise. Das Wasserfeld kann die mit [[setElementPosition]] Postion ändern und mit [[destroyElement]] zerstört werden.&lt;br /&gt;
&lt;br /&gt;
==Beispiel== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Beispiel, wie man die komplette San Andreas Karte mit Wasserfeldern bedeckt(Überflutet Städte). Es wird auch [[setWaterLevel]] benutzt, um die Höhe der Wasserfelder zu ändern.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Setting water properties.&lt;br /&gt;
height = 40&lt;br /&gt;
SizeVal = 2998&lt;br /&gt;
-- Defining variables.&lt;br /&gt;
southWest_X = -SizeVal&lt;br /&gt;
southWest_Y = -SizeVal&lt;br /&gt;
southEast_X = SizeVal&lt;br /&gt;
southEast_Y = -SizeVal&lt;br /&gt;
northWest_X = -SizeVal&lt;br /&gt;
northWest_Y = SizeVal&lt;br /&gt;
northEast_X = SizeVal&lt;br /&gt;
northEast_Y = SizeVal&lt;br /&gt;
&lt;br /&gt;
-- OnClientResourceStart function that creates the water.&lt;br /&gt;
function thaResourceStarting( )&lt;br /&gt;
    water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height )&lt;br /&gt;
    setWaterLevel ( height )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, thaResourceStarting)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client water functions}}&lt;/div&gt;</summary>
		<author><name>PLASMA</name></author>
	</entry>
</feed>