<?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=PatrikX</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=PatrikX"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/PatrikX"/>
	<updated>2026-04-10T19:54:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/createWater&amp;diff=62272</id>
		<title>HU/createWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/createWater&amp;diff=62272"/>
		<updated>2019-02-23T10:29:00Z</updated>

		<summary type="html">&lt;p&gt;PatrikX: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Létrehoz egy terültenyi [[water]]-t.&lt;br /&gt;
&lt;br /&gt;
A Lehető legnagyobb méretű víz terület az 5996&amp;amp;#0215;5996. Also be aware that the function will change all x and y coordinates you specify into even integer numbers if necessary: this is because of a limitation of San Andreas.&lt;br /&gt;
&lt;br /&gt;
You are able to give the water a shallow water effect, which practically changes the water invisible to the eye. However, all elements still work the same way as without the shallow effect - allowing swimming, diving, vehicles to sink, etc.&lt;br /&gt;
{{Note|X and Y positions will be changed to an even integer. i.e. -2, 0, 2, 4 etc.}}&lt;br /&gt;
{{Important Note|If you're working with dimensions, be sure to apply it by using [[setElementDimension]].}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;water createWater ( int x1, int y1, float z1, int x2, int y2, float z2, int x3, int y3, float z3 [, int x4, int y4, float z4 ] [, bool bShallow = false ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:WaterAreas.jpg|thumb|Example of water quadrant.|284x230px]]&lt;br /&gt;
&lt;br /&gt;
{{OOP||[[Water]]}}&lt;br /&gt;
&lt;br /&gt;
===Kötelező Argumentek===&lt;br /&gt;
*'''x1, y1, z1:''' bal alsó pozíció (south-west) sarok.&lt;br /&gt;
*'''x2, y2, z2:''' jobb alsó pozíció (south-east) sarok.&lt;br /&gt;
*'''x3, y3, z3:''' bal felső pozíció (north-west) sarok.&lt;br /&gt;
''Tipp: Csak 3 koordináta esetén hármoszög alaku vizet eredményez!''&lt;br /&gt;
&lt;br /&gt;
===Opcionális Argumentek===&lt;br /&gt;
*'''x4, y4, z4:''' jobb felső pozíció (north-east) sarok.&lt;br /&gt;
*'''bShallow:''' shallow effektet kap a víz.&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
Vissza adja a [[water]] egy [[Element]]-jét ha sikeresen létre lett hozva, egyébként ''false''. A víz át pozícionálható a [[setElementPosition]] funckióval törölni a [[destroyElement]] funkcióval lehetséges.&lt;br /&gt;
&lt;br /&gt;
==Példák== &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;
Example code for creating a water area to cover the entire San Andreas Map (flood the cities). Also, [[setWaterLevel]] is used to raise the existing rivers and lakes.&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;
&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;
This example creates water at the given coordinates and sets the height of the water level to 20 for when the client joins.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function thaResourceStarting( )&lt;br /&gt;
    water = createWater ( 1866, -1444, 10, 1968, -1442, 10, 1866, -1372, 10, 1968, -1370, 10 )&lt;br /&gt;
    setWaterLevel ( water, 20 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), thaResourceStarting)&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;
This example fills the Easter Basin with water.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fillDock()&lt;br /&gt;
    local water = createWater (-1715, 47, 0, -1574, 47, 0, -1715, 170, 0, -1574, 170, 0)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), fillDock)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Problémák ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7542|Víz funckció nem működik ezeken a koordinátákon kivűl: -3000 -3000 3000 3000}}&lt;br /&gt;
{{Issue|9608|(Fixed in r13987) &amp;quot;shallow&amp;quot; argument csak client oldalon működik}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client water functions}}&lt;/div&gt;</summary>
		<author><name>PatrikX</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/createWater&amp;diff=62271</id>
		<title>HU/createWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/createWater&amp;diff=62271"/>
		<updated>2019-02-23T10:27:48Z</updated>

		<summary type="html">&lt;p&gt;PatrikX: /* Kötelező Argumentek */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Létrehoz egy terültenyi [[water]]-t.&lt;br /&gt;
&lt;br /&gt;
A Lehető legnagyobb méretű víz terület az 5996&amp;amp;#0215;5996. Also be aware that the function will change all x and y coordinates you specify into even integer numbers if necessary: this is because of a limitation of San Andreas.&lt;br /&gt;
&lt;br /&gt;
You are able to give the water a shallow water effect, which practically changes the water invisible to the eye. However, all elements still work the same way as without the shallow effect - allowing swimming, diving, vehicles to sink, etc.&lt;br /&gt;
{{Note|X and Y positions will be changed to an even integer. i.e. -2, 0, 2, 4 etc.}}&lt;br /&gt;
{{Important Note|If you're working with dimensions, be sure to apply it by using [[setElementDimension]].}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;water createWater ( int x1, int y1, float z1, int x2, int y2, float z2, int x3, int y3, float z3 [, int x4, int y4, float z4 ] [, bool bShallow = false ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:WaterAreas.jpg|thumb|Example of water quadrant.|284x230px]]&lt;br /&gt;
&lt;br /&gt;
{{OOP||[[Water]]}}&lt;br /&gt;
&lt;br /&gt;
===Kötelező Argumentek===&lt;br /&gt;
*'''x1, y1, z1:''' bal alsó pozíció (south-west) sarok.&lt;br /&gt;
*'''x2, y2, z2:''' jobb alsó pozíció (south-east) sarok.&lt;br /&gt;
*'''x3, y3, z3:''' bal felső pozíció (north-west) sarok.&lt;br /&gt;
''Tipp: Csak 3 koordináta esetén hármoszög alaku vizet eredményez!''&lt;br /&gt;
&lt;br /&gt;
===Opcionális Argumentek===&lt;br /&gt;
*'''x4, y4, z4:''' jobb felső pozíció (north-east) sarok.&lt;br /&gt;
*'''bShallow:''' shallow effektet kap a víz.&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
Vissza adja a [[water]] egy [[Element]]-jét ha sikeresen létre lett hozva, egyébként ''false''. A víz át pozícionálható a [[setElementPosition]] funckióval törölni a [[destroyElement]] funkcióval lehetséges.&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
Example code for creating a water area to cover the entire San Andreas Map (flood the cities). Also, [[setWaterLevel]] is used to raise the existing rivers and lakes.&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;
&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;
This example creates water at the given coordinates and sets the height of the water level to 20 for when the client joins.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function thaResourceStarting( )&lt;br /&gt;
    water = createWater ( 1866, -1444, 10, 1968, -1442, 10, 1866, -1372, 10, 1968, -1370, 10 )&lt;br /&gt;
    setWaterLevel ( water, 20 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), thaResourceStarting)&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;
This example fills the Easter Basin with water.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fillDock()&lt;br /&gt;
    local water = createWater (-1715, 47, 0, -1574, 47, 0, -1715, 170, 0, -1574, 170, 0)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), fillDock)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Problémák ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7542|Víz funckció nem működik ezeken a koordinátákon kivűl: -3000 -3000 3000 3000}}&lt;br /&gt;
{{Issue|9608|(Fixed in r13987) &amp;quot;shallow&amp;quot; argument csak client oldalon működik}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client water functions}}&lt;/div&gt;</summary>
		<author><name>PatrikX</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/createWater&amp;diff=62270</id>
		<title>HU/createWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/createWater&amp;diff=62270"/>
		<updated>2019-02-23T10:26:03Z</updated>

		<summary type="html">&lt;p&gt;PatrikX: /* Visszaadott érték */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Létrehoz egy terültenyi [[water]]-t.&lt;br /&gt;
&lt;br /&gt;
A Lehető legnagyobb méretű víz terület az 5996&amp;amp;#0215;5996. Also be aware that the function will change all x and y coordinates you specify into even integer numbers if necessary: this is because of a limitation of San Andreas.&lt;br /&gt;
&lt;br /&gt;
You are able to give the water a shallow water effect, which practically changes the water invisible to the eye. However, all elements still work the same way as without the shallow effect - allowing swimming, diving, vehicles to sink, etc.&lt;br /&gt;
{{Note|X and Y positions will be changed to an even integer. i.e. -2, 0, 2, 4 etc.}}&lt;br /&gt;
{{Important Note|If you're working with dimensions, be sure to apply it by using [[setElementDimension]].}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;water createWater ( int x1, int y1, float z1, int x2, int y2, float z2, int x3, int y3, float z3 [, int x4, int y4, float z4 ] [, bool bShallow = false ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:WaterAreas.jpg|thumb|Example of water quadrant.|284x230px]]&lt;br /&gt;
&lt;br /&gt;
{{OOP||[[Water]]}}&lt;br /&gt;
&lt;br /&gt;
===Kötelező Argumentek===&lt;br /&gt;
*'''x1, y1, z1:''' bal alsó pozíció (dél-nyugat) sarok.&lt;br /&gt;
*'''x2, y2, z2:''' jobb alsó pozíció (south-east) sarok.&lt;br /&gt;
*'''x3, y3, z3:''' bal felső pozíció (north-west) sarok.&lt;br /&gt;
''Tipp: Csak 3 koordináta esetén hármoszög alaku vizet eredményez!''&lt;br /&gt;
&lt;br /&gt;
===Opcionális Argumentek===&lt;br /&gt;
*'''x4, y4, z4:''' jobb felső pozíció (north-east) sarok.&lt;br /&gt;
*'''bShallow:''' shallow effektet kap a víz.&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
Vissza adja a [[water]] egy [[Element]]-jét ha sikeresen létre lett hozva, egyébként ''false''. A víz át pozícionálható a [[setElementPosition]] funckióval törölni a [[destroyElement]] funkcióval lehetséges.&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
Example code for creating a water area to cover the entire San Andreas Map (flood the cities). Also, [[setWaterLevel]] is used to raise the existing rivers and lakes.&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;
&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;
This example creates water at the given coordinates and sets the height of the water level to 20 for when the client joins.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function thaResourceStarting( )&lt;br /&gt;
    water = createWater ( 1866, -1444, 10, 1968, -1442, 10, 1866, -1372, 10, 1968, -1370, 10 )&lt;br /&gt;
    setWaterLevel ( water, 20 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), thaResourceStarting)&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;
This example fills the Easter Basin with water.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fillDock()&lt;br /&gt;
    local water = createWater (-1715, 47, 0, -1574, 47, 0, -1715, 170, 0, -1574, 170, 0)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), fillDock)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Problémák ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7542|Víz funckció nem működik ezeken a koordinátákon kivűl: -3000 -3000 3000 3000}}&lt;br /&gt;
{{Issue|9608|(Fixed in r13987) &amp;quot;shallow&amp;quot; argument csak client oldalon működik}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client water functions}}&lt;/div&gt;</summary>
		<author><name>PatrikX</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=HU/createWater&amp;diff=62269</id>
		<title>HU/createWater</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=HU/createWater&amp;diff=62269"/>
		<updated>2019-02-23T10:25:33Z</updated>

		<summary type="html">&lt;p&gt;PatrikX: Created page with &amp;quot;__NOTOC__ {{Server client function}}  Létrehoz egy terültenyi water-t.  A Lehető legnagyobb méretű víz terület az 5996&amp;amp;#0215;5996. Also be aware that the function w...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Létrehoz egy terültenyi [[water]]-t.&lt;br /&gt;
&lt;br /&gt;
A Lehető legnagyobb méretű víz terület az 5996&amp;amp;#0215;5996. Also be aware that the function will change all x and y coordinates you specify into even integer numbers if necessary: this is because of a limitation of San Andreas.&lt;br /&gt;
&lt;br /&gt;
You are able to give the water a shallow water effect, which practically changes the water invisible to the eye. However, all elements still work the same way as without the shallow effect - allowing swimming, diving, vehicles to sink, etc.&lt;br /&gt;
{{Note|X and Y positions will be changed to an even integer. i.e. -2, 0, 2, 4 etc.}}&lt;br /&gt;
{{Important Note|If you're working with dimensions, be sure to apply it by using [[setElementDimension]].}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;water createWater ( int x1, int y1, float z1, int x2, int y2, float z2, int x3, int y3, float z3 [, int x4, int y4, float z4 ] [, bool bShallow = false ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:WaterAreas.jpg|thumb|Example of water quadrant.|284x230px]]&lt;br /&gt;
&lt;br /&gt;
{{OOP||[[Water]]}}&lt;br /&gt;
&lt;br /&gt;
===Kötelező Argumentek===&lt;br /&gt;
*'''x1, y1, z1:''' bal alsó pozíció (dél-nyugat) sarok.&lt;br /&gt;
*'''x2, y2, z2:''' jobb alsó pozíció (south-east) sarok.&lt;br /&gt;
*'''x3, y3, z3:''' bal felső pozíció (north-west) sarok.&lt;br /&gt;
''Tipp: Csak 3 koordináta esetén hármoszög alaku vizet eredményez!''&lt;br /&gt;
&lt;br /&gt;
===Opcionális Argumentek===&lt;br /&gt;
*'''x4, y4, z4:''' jobb felső pozíció (north-east) sarok.&lt;br /&gt;
*'''bShallow:''' shallow effektet kap a víz.&lt;br /&gt;
&lt;br /&gt;
===Visszaadott érték===&lt;br /&gt;
Vissza adja a [[water]] egy [[Element]]-jét ha sikeresen létre lett hozva, egyébként ''false''. A víz át pozicionálható a [[setElementPosition]] funckióval törölni a [[destroyElement]] funkcióval lehetséges.&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
Example code for creating a water area to cover the entire San Andreas Map (flood the cities). Also, [[setWaterLevel]] is used to raise the existing rivers and lakes.&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;
&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;
This example creates water at the given coordinates and sets the height of the water level to 20 for when the client joins.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function thaResourceStarting( )&lt;br /&gt;
    water = createWater ( 1866, -1444, 10, 1968, -1442, 10, 1866, -1372, 10, 1968, -1370, 10 )&lt;br /&gt;
    setWaterLevel ( water, 20 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), thaResourceStarting)&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;
This example fills the Easter Basin with water.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fillDock()&lt;br /&gt;
    local water = createWater (-1715, 47, 0, -1574, 47, 0, -1715, 170, 0, -1574, 170, 0)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), fillDock)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Problémák ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|7542|Víz funckció nem működik ezeken a koordinátákon kivűl: -3000 -3000 3000 3000}}&lt;br /&gt;
{{Issue|9608|(Fixed in r13987) &amp;quot;shallow&amp;quot; argument csak client oldalon működik}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Lásd még==&lt;br /&gt;
{{Client water functions}}&lt;/div&gt;</summary>
		<author><name>PatrikX</name></author>
	</entry>
</feed>