<?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=Mehmet+Soedir</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=Mehmet+Soedir"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Mehmet_Soedir"/>
	<updated>2026-04-22T12:16:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddTankFire&amp;diff=31194</id>
		<title>FxAddTankFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddTankFire&amp;diff=31194"/>
		<updated>2012-05-25T13:11:28Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxtankfire.png|thumb|200px|Tank fire]]&lt;br /&gt;
This function creates a tank firing particle effect.&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 fxAddTankFire ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the effect originates.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a direction vector indicating where the tank fire is directed to.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise. &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;
This example will create a Tank Fire Effect at your weapon's muzzle position&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWeaponFire&amp;quot;, root, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)&lt;br /&gt;
    if weapon == 0 then return end -- If the player is unarmed, return end.&lt;br /&gt;
    local mX, mY, mZ = getPedWeaponMuzzlePosition(localPlayer)&lt;br /&gt;
    fxAddTankFire(mX, mY, mZ, 0, 90, 0)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddWaterSplash&amp;diff=31193</id>
		<title>FxAddWaterSplash</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddWaterSplash&amp;diff=31193"/>
		<updated>2012-05-25T13:01:05Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxwatersplash.png|thumb|200px|Water splash]]&lt;br /&gt;
This function creates a water splash particle effect.&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 fxAddWaterSplash ( float posX, float posY, float posZ )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''posX:''' A float representing the '''x''' position of the splash&lt;br /&gt;
* '''posY:''' A float representing the '''y''' position of the splash&lt;br /&gt;
* '''posZ:''' A float representing the '''z''' position of the splash&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise. &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;
This example will create a Water Splash at the position of the bullet impact whenever you shoot.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWeaponFire&amp;quot;, root, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)&lt;br /&gt;
    if weapon == 0 then return end -- If the player is unarmed, return end.&lt;br /&gt;
    fxAddWaterSplash(hitX, hitY, hitZ)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddFootSplash&amp;diff=31192</id>
		<title>FxAddFootSplash</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddFootSplash&amp;diff=31192"/>
		<updated>2012-05-25T12:58:23Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxfootsplash.png|thumb|200px|Foot splash]]&lt;br /&gt;
This function creates a foot splash particle effect, normally created when walking into water.&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 fxAddFootSplash ( float posX, float posY, float posZ )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''posX:''' A float representing the '''x''' position of the splash&lt;br /&gt;
* '''posY:''' A float representing the '''y''' position of the splash&lt;br /&gt;
* '''posZ:''' A float representing the '''z''' position of the splash&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise. &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;
This example will create a Foot Splash at the position of the bullet impact whenever you shoot.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWeaponFire&amp;quot;, root, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)&lt;br /&gt;
    if weapon == 0 then return end -- If the player is unarmed, return end.&lt;br /&gt;
    fxAddFootSplash(hitX, hitY, hitZ)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddWood&amp;diff=31191</id>
		<title>FxAddWood</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddWood&amp;diff=31191"/>
		<updated>2012-05-25T12:48:44Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxwood.png|thumb|200px|Wood]]&lt;br /&gt;
Creates a wood splinter particle effect.&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 fxAddWood ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [int count=1, float brightness=1.0] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the effect originates.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a direction vector indicating where the wood splinters fly to.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''count:''' the number of splinters to create.&lt;br /&gt;
*'''brightness:''' the brightness. Ranges from 0 (black) to 1 (normal color).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise.&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;
This example will create a Wood Effect next to you when typing ''/woodfx'' in the Chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;woodfx&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    local gz = getGroundPosition(x, y, z)&lt;br /&gt;
    fxAddWood(x, y, gz+0.4, 0, 0, 0, math.random(3, 6), 0.7)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddTyreBurst&amp;diff=31190</id>
		<title>FxAddTyreBurst</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddTyreBurst&amp;diff=31190"/>
		<updated>2012-05-25T12:41:49Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxtyreburst.png|thumb|200px|Tyre burst]]&lt;br /&gt;
Creates a tyre burst particle effect (a small white smoke puff).&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 fxAddTyreBurst ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the puff originates.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a vector indicating the movement direction of the effect.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise.&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;
This example will create a Tyre Burst Effect next to you when typing ''/tyreburst'' in the Chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;tyreburst&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    local gz = getGroundPosition(x, y, z)&lt;br /&gt;
    fxAddTyreBurst(x, y, gz, 0, 0, 0)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddSparks&amp;diff=31189</id>
		<title>FxAddSparks</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddSparks&amp;diff=31189"/>
		<updated>2012-05-25T12:30:00Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */ Huge Example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxsparks.png|thumb|200px|Sparks]]&lt;br /&gt;
Creates a number of sparks originating from a point or along a line.&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 fxAddSparks ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [float force=1, int count=1,&lt;br /&gt;
                   float acrossLineX=0, float acrossLineY=0, float acrossLineZ=0, bool blur=false, float spread=1, float life=1] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the sparks originate.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a direction vector indicating where the sparks fly to. The longer this vector is, the faster the sparks fly.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''force:''' speed factor: the higher this value, the faster and further the sparks fly.&lt;br /&gt;
*'''count:''' the number of effects to create.&lt;br /&gt;
*'''acrossLineX, acrossLineY, acrossLineZ:''' a vector starting at the '''pos''' coordinates. If specified, the sparks will be created along a line going from '''pos''' to '''pos - acrossLine'''. If not specified, all sparks originate from the point at '''pos'''.&lt;br /&gt;
*'''blur:''' if ''false'', creates standard bullet impact-like sparks. If ''true'', adds motion blur to the sparks.&lt;br /&gt;
*'''spread:''' determines how strongly the particles deviate from each other. With low values the particles will stay quite close together, high values will make them fly in all directions. Also affects their speed.&lt;br /&gt;
*'''life:''' the higher this value, the longer the sparks survive before they disappear.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise.&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;
This example will add Fire Bins to all locations added in the table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
fires = {&lt;br /&gt;
    {0, 0, 3} --Middle of SA&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for i = 1, #fires do&lt;br /&gt;
    bin = createObject(1362, fires[i][1], fires[i][2], fires[i][3]-0.5)&lt;br /&gt;
    torch = createObject(3461, fires[i][1]-0.1, fires[i][2]-0.1, fires[i][3]-2)&lt;br /&gt;
    light = createMarker(fires[i][1], fires[i][2], fires[i][3]+0.2, &amp;quot;corona&amp;quot;, 1, 255, 170, 0, 80, root)&lt;br /&gt;
    fireCol = createColSphere(fires[i][1], fires[i][2], fires[i][3]+0.5, 0.8)&lt;br /&gt;
    setTimer(fxAddSparks, math.random(4000, 5000), 0, fires[i][1]+math.random(0.1, 0.3), fires[i][2]+math.random(0.1, 0.2), fires[i][3]+0.2, 1, 1, 1)         &lt;br /&gt;
            &lt;br /&gt;
    addEventHandler(&amp;quot;onClientColShapeHit&amp;quot;, fireCol, &lt;br /&gt;
    function(theElement)&lt;br /&gt;
        if (getElementType(theElement) == &amp;quot;player&amp;quot;) then&lt;br /&gt;
            setPedOnFire(theElement, true)&lt;br /&gt;
        end&lt;br /&gt;
    end)&lt;br /&gt;
            &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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddPunchImpact&amp;diff=31188</id>
		<title>FxAddPunchImpact</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddPunchImpact&amp;diff=31188"/>
		<updated>2012-05-25T12:21:47Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxpunchimpact.png|thumb|200px|Punch impact]]&lt;br /&gt;
Creates a punch impact particle effect (a small dust cloud).&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 fxAddPunchImpact ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the effect originates.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a vector indicating the movement direction of the effect.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise.&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;
This example will create a Punch Impact Effect next to you when typing ''/pimpact'' in the Chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;pimpact&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    local gz = getGroundPosition(x, y, z)&lt;br /&gt;
    fxAddPunchImpact(x, y, gz, 0, 0, 0)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddGlass&amp;diff=31187</id>
		<title>FxAddGlass</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddGlass&amp;diff=31187"/>
		<updated>2012-05-25T12:14:13Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Cleaned up examples&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxglass.png|thumb|200px|Glass]]&lt;br /&gt;
This function creates a glass particle effect.&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 fxAddGlass ( float posX, float posY, float posZ, [int colorR=255, int colorG=0, int colorB=0, int colorA=255, float scale=1.0, int count=1] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''posX:''' A float representing the '''x''' position of the glass&lt;br /&gt;
* '''posY:''' A float representing the '''y''' position of the glass&lt;br /&gt;
* '''posZ:''' A float representing the '''z''' position of the glass&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''colorR, colorG, colorB, colorA:''' the color and alpha (transparency) of the glass effect.&lt;br /&gt;
* '''scale:''' A float representing the size of the particle effect, where '''1''' is the standard size.&lt;br /&gt;
* '''count:''' The density of the particle effect.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise. &lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&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 shows you how to add a command to add glass effect.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function addGlassParticle(r,g,b,a,scale,count)&lt;br /&gt;
	x,y,z = getElementPosition(localPlayer)&lt;br /&gt;
   fxAddGlass(x+3,y,z,r,g,b,a,scale,count)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;addGlass&amp;quot;,addGlassParticle)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&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 shows you how to add a glass effect to a map&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addPG()&lt;br /&gt;
   fxAddGlass(0,0,0,134,231,231,1,random(30,40))&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;,getResourceRootElement(getThisResource(), addPG)&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 Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddDebris&amp;diff=31186</id>
		<title>FxAddDebris</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddDebris&amp;diff=31186"/>
		<updated>2012-05-25T12:11:28Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Removed from 'Needs Example' list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxdebris.png|thumb|200px|Debris]]&lt;br /&gt;
Creates a debris particle effect (e.g. bits that fly off a car when ramming a wall).&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 fxAddDebris ( float posX, float posY, float posZ, [int colorR=255, int colorG=0, int colorB=0, int colorA=255, float scale=1.0, int count=1] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the debris originates.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''colorR, colorG, colorB, colorA:''' the color and alpha (transparency) of the debris effect.&lt;br /&gt;
*'''scale:''' the size of the chunks.&lt;br /&gt;
*'''count:''' the number of chunks to create.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise.&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;
This example will create a Debris Effect next to you when typing ''/debris'' in the Chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;debris&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    local randomColor, randomAmount = math.random(0, 255), math.random(4, 8)&lt;br /&gt;
    fxAddDebris(x, y, z, randomColor, randomColor, randomColor, 255, 1.0, randomAmount)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddDebris&amp;diff=31185</id>
		<title>FxAddDebris</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddDebris&amp;diff=31185"/>
		<updated>2012-05-25T12:11:08Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxdebris.png|thumb|200px|Debris]]&lt;br /&gt;
Creates a debris particle effect (e.g. bits that fly off a car when ramming a wall).&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 fxAddDebris ( float posX, float posY, float posZ, [int colorR=255, int colorG=0, int colorB=0, int colorA=255, float scale=1.0, int count=1] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the debris originates.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''colorR, colorG, colorB, colorA:''' the color and alpha (transparency) of the debris effect.&lt;br /&gt;
*'''scale:''' the size of the chunks.&lt;br /&gt;
*'''count:''' the number of chunks to create.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise.&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;
This example will create a Debris Effect next to you when typing ''/debris'' in the Chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;debris&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    local randomColor, randomAmount = math.random(0, 255), math.random(4, 8)&lt;br /&gt;
    fxAddDebris(x, y, z, randomColor, randomColor, randomColor, 255, 1.0, randomAmount)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddBulletImpact&amp;diff=31177</id>
		<title>FxAddBulletImpact</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddBulletImpact&amp;diff=31177"/>
		<updated>2012-05-25T11:40:47Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxbulletimpact.png|thumb|200px|Bullet impact]]&lt;br /&gt;
Creates a bullet impact particle effect, consisting of a small smoke cloud and a number of sparks.&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 fxAddBulletImpact ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ, [int smokeSize=1, int sparkCount=1, float smokeIntensity=1.0] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''posX, posY, posZ:''' the world coordinates where the effect originates.&lt;br /&gt;
*'''dirX, dirY, dirZ:''' a vector indicating the direction of the effect.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
*'''smokeSize:''' the size of the smoke cloud.&lt;br /&gt;
*'''sparkCount:''' the number of sparks to create.&lt;br /&gt;
*'''smokeIntensity:''' the amount/transparency of smoke, ranges from 0 to 1.&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;
This example will create a Bullet Impact Effect on the position of the bullet impact.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWeaponFire&amp;quot;, root, function(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)&lt;br /&gt;
    if weapon == 0 then return end -- If the player is unarmed, return end.&lt;br /&gt;
    fxAddBulletImpact(hitX, hitY, hitZ, 0, 0, 0, math.random(1, 2), math.random(2, 5), 1.0)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddBulletSplash&amp;diff=31176</id>
		<title>FxAddBulletSplash</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddBulletSplash&amp;diff=31176"/>
		<updated>2012-05-25T11:30:33Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Removed from 'Needs Example' list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxbulletsplash.png|thumb|200px|Bullet splash]]&lt;br /&gt;
This function creates a bullet splash particle effect, normally created when shooting into water.&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 fxAddBulletSplash ( float posX, float posY, float posZ )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''posX:''' A float representing the '''x''' position of the splash&lt;br /&gt;
* '''posY:''' A float representing the '''y''' position of the splash&lt;br /&gt;
* '''posZ:''' A float representing the '''z''' position of the splash&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise. &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;
This example will add a Bullet Splash Effect next to your player when typing ''/bsplash'' in the Chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;bsplash&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    local gz = getGroundPosition(x, y, z)&lt;br /&gt;
    fxAddBulletSplash(x, y, gz)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FxAddBulletSplash&amp;diff=31175</id>
		<title>FxAddBulletSplash</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FxAddBulletSplash&amp;diff=31175"/>
		<updated>2012-05-25T11:29:16Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Fxbulletsplash.png|thumb|200px|Bullet splash]]&lt;br /&gt;
This function creates a bullet splash particle effect, normally created when shooting into water.&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 fxAddBulletSplash ( float posX, float posY, float posZ )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
* '''posX:''' A float representing the '''x''' position of the splash&lt;br /&gt;
* '''posY:''' A float representing the '''y''' position of the splash&lt;br /&gt;
* '''posZ:''' A float representing the '''z''' position of the splash&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a true if the operation was successful, false otherwise. &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;
This example will add a Bullet Splash Effect next to your player when typing ''/bsplash'' in the Chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;bsplash&amp;quot;, function()&lt;br /&gt;
    local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
    local gz = getGroundPosition(x, y, z)&lt;br /&gt;
    fxAddBulletSplash(x, y, gz)&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;
==See Also==&lt;br /&gt;
{{Client Effects functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=InterpolateBetween&amp;diff=31174</id>
		<title>InterpolateBetween</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=InterpolateBetween&amp;diff=31174"/>
		<updated>2012-05-24T18:31:33Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Added third example (Moving camera)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
Interpolates a 3D Vector between a source value and a target value using either linear interpolation or any other [[Easing|easing function]].&lt;br /&gt;
It can also be used to interpolate 2D vectors or scalars by only setting some of the x, y, z values and putting 0 to the others.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float interpolateBetween ( float x1, float y1, float z1, &lt;br /&gt;
                                       float x2, float y2, float z2, &lt;br /&gt;
                                       float fProgress, string strEasingType, &lt;br /&gt;
                                       [ float fEasingPeriod, float fEasingAmplitude, float fEasingOvershoot ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''x1, y1, z1:''' 3D coordinates of source vector/value&lt;br /&gt;
*'''x2, y2, z2:''' 3D coordinates of target vector/value&lt;br /&gt;
*'''fProgress:''' float between 0 and 1 indicating the interpolation progress (0 at the beginning of the interpolation, 1 at the end).&lt;br /&gt;
*'''strEasingType:''' the [[Easing|easing function]] to use for the interpolation&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''fEasingPeriod:''' the period of the [[Easing|easing function]] (only some easing functions use this parameter)&lt;br /&gt;
*'''fEasingAmplitude:''' the amplitude of the [[Easing|easing function]] (only some easing functions use this parameter)&lt;br /&gt;
*'''fEasingOvershoot:''' the overshoot of the [[Easing|easing function]] (only some easing functions use this parameter)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''x, y, z'' the interpolated 3D vector/value if successful, ''false'' otherwise (error in parameters).&lt;br /&gt;
As mentioned before, interpolateBetween can be used on 2D vectors or scalars in which case only some (x, y or just x) of the returned values are to be used (cf. alpha interpolation in marker example or size interpolation in window example).&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
The examples below are only clientside examples even though the function can be used on both sides. Indeed it makes more sense to use it with onClientRender/onClientPreRender but the freedom is given to use it in any other context.&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 clientside example uses interpolateBetween to create position and color interpolation(with effect) on a marker.&lt;br /&gt;
The command to test it is &amp;quot;/marker&amp;quot;.&lt;br /&gt;
The position is interpolated with &amp;quot;OutBounce&amp;quot; as strEasingType to make the marker bounce off the ground and &amp;quot;Linear&amp;quot; interpolation for the color.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local g_Marker = nil&lt;br /&gt;
addCommandHandler(&amp;quot;marker&amp;quot;,&lt;br /&gt;
function ()&lt;br /&gt;
	if g_Marker then return end&lt;br /&gt;
	&lt;br /&gt;
	local x, y, z = getElementPosition(getLocalPlayer())&lt;br /&gt;
	z = z - 1&lt;br /&gt;
	&lt;br /&gt;
	g_Marker = {}&lt;br /&gt;
	g_Marker.startPos = {x, y, z + 5}&lt;br /&gt;
	g_Marker.startTime = getTickCount()&lt;br /&gt;
	g_Marker.startColor = {255, 0, 0, 0}&lt;br /&gt;
	g_Marker.endPos = {x, y, z}&lt;br /&gt;
	g_Marker.endTime = g_Marker.startTime + 2000&lt;br /&gt;
	g_Marker.endColor = {0, 0, 255, 255}	&lt;br /&gt;
	&lt;br /&gt;
	local x, y, z = unpack(g_Marker.startPos)&lt;br /&gt;
	local r, g, b, a = unpack(g_Marker.startColor)&lt;br /&gt;
	g_Marker.marker = createMarker(x, y, z, &amp;quot;cylinder&amp;quot;, 1, 255, r, g, b, a)&lt;br /&gt;
		&lt;br /&gt;
	addEventHandler(&amp;quot;onClientRender&amp;quot;, getRootElement(), popMarkerUp)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function popMarkerUp()&lt;br /&gt;
	local now = getTickCount()&lt;br /&gt;
	local elapsedTime = now - g_Marker.startTime&lt;br /&gt;
	local duration = g_Marker.endTime - g_Marker.startTime&lt;br /&gt;
	local progress = elapsedTime / duration&lt;br /&gt;
&lt;br /&gt;
	local x1, y1, z1 = unpack(g_Marker.startPos)&lt;br /&gt;
	local x2, y2, z2 = unpack(g_Marker.endPos)&lt;br /&gt;
	local x, y, z = interpolateBetween ( &lt;br /&gt;
		x1, y1, z1,&lt;br /&gt;
		x2, y2, z2, &lt;br /&gt;
		progress, &amp;quot;OutBounce&amp;quot;)&lt;br /&gt;
		&lt;br /&gt;
	setElementPosition(g_Marker.marker, x, y, z)&lt;br /&gt;
			&lt;br /&gt;
	local r1, g1, b1, a1 = unpack(g_Marker.startColor)&lt;br /&gt;
	local r2, g2, b2, a2 = unpack(g_Marker.endColor)&lt;br /&gt;
	local r, g, b = interpolateBetween ( &lt;br /&gt;
		r1, g1, b1,&lt;br /&gt;
		r2, g2, b2, &lt;br /&gt;
		progress, &amp;quot;Linear&amp;quot;)&lt;br /&gt;
	local a = interpolateBetween ( &lt;br /&gt;
		a1, 0, 0,&lt;br /&gt;
		a2, 0, 0,&lt;br /&gt;
		progress, &amp;quot;Linear&amp;quot;)&lt;br /&gt;
		&lt;br /&gt;
	setMarkerColor(g_Marker.marker , r, g, b, a)&lt;br /&gt;
	&lt;br /&gt;
	if now &amp;gt;= g_Marker.endTime then&lt;br /&gt;
		removeEventHandler(&amp;quot;onClientRender&amp;quot;, getRootElement(), popMarkerUp)&lt;br /&gt;
		setTimer(&lt;br /&gt;
			function ()&lt;br /&gt;
				destroyElement(g_Marker.marker)&lt;br /&gt;
				g_Marker = nil&lt;br /&gt;
			end, 3000, 1)&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;
&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 clientside example uses interpolateBetween to create size and position interpolation (with effect) on a gui-window.&lt;br /&gt;
The command to test it is &amp;quot;/window&amp;quot;.&lt;br /&gt;
When the window pops up it uses &amp;quot;OutElastic&amp;quot; as the strEasingType to create the bouncing/elastic effect.&lt;br /&gt;
When it fades away, it uses &amp;quot;InQuad&amp;quot; to have an accelerating fading.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local g_Window = nil&lt;br /&gt;
addCommandHandler(&amp;quot;window&amp;quot;,&lt;br /&gt;
function ()&lt;br /&gt;
	if g_Window then return end&lt;br /&gt;
	&lt;br /&gt;
	g_Window = {}&lt;br /&gt;
	&lt;br /&gt;
	local screenWidth, screenHeight = guiGetScreenSize()&lt;br /&gt;
	g_Window.windowWidth, g_Window.windowHeight = 400, 315&lt;br /&gt;
	local left = screenWidth/2 - g_Window.windowWidth/2&lt;br /&gt;
	local top = screenHeight/2 - g_Window.windowHeight/2&lt;br /&gt;
	&lt;br /&gt;
	g_Window.window = guiCreateWindow(left, top, g_Window.windowWidth, g_Window.windowHeight, &amp;quot;Interpolation on GUI&amp;quot;, false)&lt;br /&gt;
	&lt;br /&gt;
	g_Window.closeBtn = guiCreateButton(320, 285, 75, 23, &amp;quot;Close&amp;quot;, false, g_Window.window)&lt;br /&gt;
		&lt;br /&gt;
	guiWindowSetSizable(g_Window.window, false)&lt;br /&gt;
	guiWindowSetMovable(g_Window.window, false)&lt;br /&gt;
	guiSetEnabled(g_Window.window, false)&lt;br /&gt;
	guiSetVisible(g_Window.window, false)&lt;br /&gt;
	&lt;br /&gt;
	g_Window.startTime = getTickCount()&lt;br /&gt;
	g_Window.startSize = {0, 0}&lt;br /&gt;
	g_Window.endSize = {g_Window.windowWidth, g_Window.windowHeight}&lt;br /&gt;
	g_Window.endTime = g_Window.startTime + 1000&lt;br /&gt;
	addEventHandler(&amp;quot;onClientRender&amp;quot;, getRootElement(), popWindowUp)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function on_closeBtn_clicked(button, state, absoluteX, absoluteY)&lt;br /&gt;
	if (button ~= &amp;quot;left&amp;quot;) or (state ~= &amp;quot;up&amp;quot;) then&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not g_Window then return end&lt;br /&gt;
	&lt;br /&gt;
	showCursor(false)&lt;br /&gt;
	guiSetEnabled(g_Window.window, false)&lt;br /&gt;
	guiWindowSetMovable(g_Window.window, false)&lt;br /&gt;
	&lt;br /&gt;
	local screenWidth, screenHeight = guiGetScreenSize()&lt;br /&gt;
	local posX, posY = guiGetPosition(g_Window.window, false)&lt;br /&gt;
	&lt;br /&gt;
	g_Window.startTime = getTickCount()&lt;br /&gt;
	g_Window.startSize = {g_Window.windowWidth, g_Window.windowHeight}&lt;br /&gt;
	g_Window.startCenter = &lt;br /&gt;
	{&lt;br /&gt;
		posX + g_Window.windowWidth/2,&lt;br /&gt;
		posY + g_Window.windowHeight/2,&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	g_Window.endSize = {0, 0}&lt;br /&gt;
	g_Window.endTime = g_Window.startTime + 1000&lt;br /&gt;
	g_Window.endCenter = &lt;br /&gt;
	{&lt;br /&gt;
		screenWidth, &lt;br /&gt;
		screenHeight&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	addEventHandler(&amp;quot;onClientRender&amp;quot;, getRootElement(), popWindowDown)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function popWindowUp()&lt;br /&gt;
	local now = getTickCount()&lt;br /&gt;
	local elapsedTime = now - g_Window.startTime&lt;br /&gt;
	local duration = g_Window.endTime - g_Window.startTime&lt;br /&gt;
	local progress = elapsedTime / duration&lt;br /&gt;
		&lt;br /&gt;
	local width, height, _ = interpolateBetween ( &lt;br /&gt;
		g_Window.startSize[1], g_Window.startSize[2], 0, &lt;br /&gt;
		g_Window.endSize[1], g_Window.endSize[2], 0, &lt;br /&gt;
		progress, &amp;quot;OutElastic&amp;quot;)&lt;br /&gt;
		&lt;br /&gt;
	guiSetSize(g_Window.window, width, height, false)&lt;br /&gt;
	&lt;br /&gt;
	local screenWidth, screenHeight = guiGetScreenSize()&lt;br /&gt;
	guiSetPosition(g_Window.window, screenWidth/2 - width/2, screenHeight/2 - height/2, false)&lt;br /&gt;
	&lt;br /&gt;
	if not guiGetVisible(g_Window.window) then&lt;br /&gt;
		guiSetVisible(g_Window.window, true)&lt;br /&gt;
		guiBringToFront(g_Window.window)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if now &amp;gt;= g_Window.endTime then&lt;br /&gt;
		guiSetEnabled(g_Window.window, true)&lt;br /&gt;
		&lt;br /&gt;
		guiBringToFront(g_Window.window)&lt;br /&gt;
		removeEventHandler(&amp;quot;onClientRender&amp;quot;, getRootElement(), popWindowUp)&lt;br /&gt;
		addEventHandler(&amp;quot;onClientGUIClick&amp;quot;, g_Window.closeBtn, on_closeBtn_clicked, false)&lt;br /&gt;
		showCursor(true)&lt;br /&gt;
		guiWindowSetMovable(g_Window.window, true)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function popWindowDown()&lt;br /&gt;
	local now = getTickCount()&lt;br /&gt;
	local elapsedTime = now - g_Window.startTime&lt;br /&gt;
	local duration = g_Window.endTime - g_Window.startTime&lt;br /&gt;
	local progress = elapsedTime / duration&lt;br /&gt;
	&lt;br /&gt;
	local width, height, _ = interpolateBetween ( &lt;br /&gt;
		g_Window.startSize[1], g_Window.startSize[2], 0, &lt;br /&gt;
		g_Window.endSize[1], g_Window.endSize[2], 0, &lt;br /&gt;
		progress, &amp;quot;InQuad&amp;quot;)&lt;br /&gt;
		&lt;br /&gt;
	guiSetSize(g_Window.window, width, height, false)&lt;br /&gt;
	&lt;br /&gt;
	local centerX, centerY, _ = interpolateBetween ( &lt;br /&gt;
		g_Window.startCenter[1], g_Window.startCenter[2], 0, &lt;br /&gt;
		g_Window.endCenter[1], g_Window.endCenter[2], 0, &lt;br /&gt;
		progress, &amp;quot;InQuad&amp;quot;)&lt;br /&gt;
	&lt;br /&gt;
	guiSetPosition(g_Window.window, centerX - width/2, centerY - height/2, false)&lt;br /&gt;
	&lt;br /&gt;
	if now &amp;gt;= g_Window.endTime then&lt;br /&gt;
		removeEventHandler(&amp;quot;onClientRender&amp;quot;, getRootElement(), popWindowDown)&lt;br /&gt;
		destroyElement(g_Window.window)&lt;br /&gt;
		g_Window = nil&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&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 clientside example uses interpolateBetween to create and position interpolation (with effect) on a camera.&lt;br /&gt;
The command to test it is &amp;quot;/ccam&amp;quot;.&lt;br /&gt;
When the camera pops up it uses &amp;quot;OutQuad&amp;quot; as the strEasingType to create the slow down effect.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local enabled = false&lt;br /&gt;
 &lt;br /&gt;
addCommandHandler(&amp;quot;ccam&amp;quot;, function()&lt;br /&gt;
    enabled = not enabled&lt;br /&gt;
    if enabled then&lt;br /&gt;
        start = getTickCount()&lt;br /&gt;
        dx, dy, dz, lx, ly, lz = getCameraMatrix()&lt;br /&gt;
        addEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, interpolateCam)&lt;br /&gt;
        else&lt;br /&gt;
        start = nil&lt;br /&gt;
        setCameraTarget(localPlayer)&lt;br /&gt;
        removeEventHandler(&amp;quot;onClientPreRender&amp;quot;, root, interpolateCam)&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
 &lt;br /&gt;
function interpolateCam()&lt;br /&gt;
    local now = getTickCount()&lt;br /&gt;
    local endTime = start + 2000&lt;br /&gt;
    local elapsedTime = now - start&lt;br /&gt;
    local duration = endTime - start&lt;br /&gt;
    local progress = elapsedTime / duration&lt;br /&gt;
    local px, py, pz = getElementPosition(localPlayer)&lt;br /&gt;
    local x, y, z = interpolateBetween ( dx, dy, dz, dx+4, dy+4, dz, progress, &amp;quot;OutQuad&amp;quot;)&lt;br /&gt;
    setCameraMatrix(x, y, z, px, py, pz+0.6, 0, 0)&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;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleTurnVelocity&amp;diff=31173</id>
		<title>GetVehicleTurnVelocity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleTurnVelocity&amp;diff=31173"/>
		<updated>2012-05-24T18:14:04Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Removed from 'Needs Example' list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to retrieve a vehicle's turning velocity for each axis.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getVehicleTurnVelocity ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you wish to get the turning velocities of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 3 ''floats'' that represent the vehicle's turning velocity on the x, y and z axis or ''false'' if wrong arguments were passed.&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 shows the current turn velocity of the vehicle that you're in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;geturnvelocity&amp;quot;, function(player)&lt;br /&gt;
    if not isPedInVehicle(player) then return end&lt;br /&gt;
    local veh = getPedOccupiedVehicle(player)&lt;br /&gt;
    local vx, vy, vz = getVehicleTurnVelocity(veh)&lt;br /&gt;
    outputChatBox(&amp;quot;Vehicle's turn velocity is: X: &amp;quot;..vx..&amp;quot; Y: &amp;quot;..vy..&amp;quot; Z: &amp;quot;..vz, player, 0, 255, 0, false)&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;
==See Also==&lt;br /&gt;
&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=XmlDestroyNode&amp;diff=31172</id>
		<title>XmlDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=XmlDestroyNode&amp;diff=31172"/>
		<updated>2012-05-24T18:13:02Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Removed from 'Needs Example' list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 xmlDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''false'' otherwise.&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 will add a command called '/delnode' and it will create an xml file called 'test.xml'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, function()&lt;br /&gt;
    xml = xmlLoadFile(&amp;quot;test.xml&amp;quot;)&lt;br /&gt;
    if not xml then&lt;br /&gt;
        xml = xmlCreateFile(&amp;quot;test.xml&amp;quot;, &amp;quot;root&amp;quot;)&lt;br /&gt;
        xmlCreateChild(xml, &amp;quot;node&amp;quot;)&lt;br /&gt;
        xmlSaveFile(xml)&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;delnode&amp;quot;, function(player)&lt;br /&gt;
    local node = xmlFindChild(xml, &amp;quot;node&amp;quot;, 0)&lt;br /&gt;
    if not node then xmlUnloadFile(xml) return end&lt;br /&gt;
    xmlDestroyNode(node)&lt;br /&gt;
    xmlSaveFile(xml)&lt;br /&gt;
    xmlUnloadFile(xml)&lt;br /&gt;
    outputChatBox(&amp;quot;You destroyed the node!&amp;quot;, player, 0, 255, 0, false)&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;
==See Also==&lt;br /&gt;
{{XML functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=XmlDestroyNode&amp;diff=31171</id>
		<title>XmlDestroyNode</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=XmlDestroyNode&amp;diff=31171"/>
		<updated>2012-05-24T18:06:36Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function destroys a XML node from the XML node tree.&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 xmlDestroyNode ( xmlnode theXMLNode )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theXMLNode:''' The [[xml node]] you want to destroy.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[xml node]] was successfully destroyed, ''false'' otherwise.&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 will add a command called '/delnode' and it will create an xml file called 'test.xml'.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, function()&lt;br /&gt;
    xml = xmlLoadFile(&amp;quot;test.xml&amp;quot;)&lt;br /&gt;
    if not xml then&lt;br /&gt;
        xml = xmlCreateFile(&amp;quot;test.xml&amp;quot;, &amp;quot;root&amp;quot;)&lt;br /&gt;
        xmlCreateChild(xml, &amp;quot;node&amp;quot;)&lt;br /&gt;
        xmlSaveFile(xml)&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;delnode&amp;quot;, function(player)&lt;br /&gt;
    local node = xmlFindChild(xml, &amp;quot;node&amp;quot;, 0)&lt;br /&gt;
    if not node then xmlUnloadFile(xml) return end&lt;br /&gt;
    xmlDestroyNode(node)&lt;br /&gt;
    xmlSaveFile(xml)&lt;br /&gt;
    xmlUnloadFile(xml)&lt;br /&gt;
    outputChatBox(&amp;quot;You destroyed the node!&amp;quot;, player, 0, 255, 0, false)&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;
==See Also==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Mehmet_Soedir&amp;diff=31170</id>
		<title>User:Mehmet Soedir</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Mehmet_Soedir&amp;diff=31170"/>
		<updated>2012-05-24T17:49:15Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Profile Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Coder.gif]] '''This user is a furious scripter'''&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31167</id>
		<title>OnClientSoundChangedMeta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31167"/>
		<updated>2012-05-24T16:34:04Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound's meta tags have been modified.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string streamTitle&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''streamTitle''': The title of a specific stream&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] of which the meta tags have just been modified.&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;
This example will output the new stream title in the chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientSoundChangedMeta&amp;quot;, root, function(streamTitle)&lt;br /&gt;
    outputChatBox(&amp;quot;* Now streaming: &amp;quot;..streamTitle, 255, 200, 0, false)&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;
==See Also==&lt;br /&gt;
&lt;br /&gt;
{{Sound events}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31166</id>
		<title>OnClientSoundChangedMeta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31166"/>
		<updated>2012-05-24T16:32:49Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound's meta tags have been modified.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string streamTitle&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''streamTitle''': The title of a specific stream&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] of which the meta tags have just been modified.&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;
This example will output the new stream title in the chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientSoundChangedMeta&amp;quot;, root, function(streamTitle)&lt;br /&gt;
    outputChatBox(&amp;quot;* Now streaming: &amp;quot;..streamTitle, 255, 200, 0, false)&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;
==See Also==&lt;br /&gt;
&lt;br /&gt;
{{Audio functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31164</id>
		<title>OnClientSoundChangedMeta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31164"/>
		<updated>2012-05-24T16:32:09Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Added See Also menu (Deleted by accident)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound's meta tags have been modified.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string streamTitle&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''streamTitle''': The title of a specific stream&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] of which the meta tags have just been modified.&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;
This example will output the new stream title in the chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientSoundChangedMeta&amp;quot;, root, function(streamTitle)&lt;br /&gt;
    outputChatBox(&amp;quot;* Now streaming: &amp;quot;..streamTitle, 255, 200, 0, false)&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;
==See Also==&lt;br /&gt;
&lt;br /&gt;
{{Sound functions}}&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31163</id>
		<title>OnClientSoundChangedMeta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31163"/>
		<updated>2012-05-24T16:30:38Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Fixed error&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound's meta tags have been modified.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string streamTitle&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''streamTitle''': The title of a specific stream&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] of which the meta tags have just been modified.&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;
This example will output the new stream title in the chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientSoundChangedMeta&amp;quot;, root, function(streamTitle)&lt;br /&gt;
    outputChatBox(&amp;quot;* Now streaming: &amp;quot;..streamTitle, 255, 200, 0, false)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31162</id>
		<title>OnClientSoundChangedMeta</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientSoundChangedMeta&amp;diff=31162"/>
		<updated>2012-05-24T16:29:51Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client event}}&lt;br /&gt;
This event is triggered when a sound's meta tags have been modified.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string streamTitle&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''streamTitle''': The title of a specific stream&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[sound]] of which the meta tags have just been modified.&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;
This example will output the new stream title in the chatbox.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientSoundChangedMeta&amp;quot;, root, function(streamTitle)&lt;br /&gt;
    outputChatBox(&amp;quot;* Now streaming: &amp;quot;..streamTitle, 255, 200, 0, false)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client sound events===&lt;br /&gt;
{{Sound_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31159</id>
		<title>GetProjectileCreator</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31159"/>
		<updated>2012-05-24T16:20:39Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Cleaned up example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function returns the creator of the specified projectile.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element getProjectileCreator ( projectile theProjectile )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theProjectile:''' The [[projectiles| projectile]] element which creator you want to retrieve.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the element which created the projectile if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&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 will output a message in the chatbox saying who created&lt;br /&gt;
the projectile.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientProjectileCreation&amp;quot;, root, function(projectile)&lt;br /&gt;
    local creator = getProjectileCreator(projectile)&lt;br /&gt;
    if (getElementType(creator) == &amp;quot;player&amp;quot;) then&lt;br /&gt;
        local pName = getPlayerName(creator)&lt;br /&gt;
	local projectileID = getProjectileType(projectile)&lt;br /&gt;
        outputChatBox(pName..&amp;quot; created a projectile! (ID: &amp;quot;..projectileID..&amp;quot;)&amp;quot;, 255, 200, 0, false)&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;
==See also==&lt;br /&gt;
{{Client projectile functions}}&lt;br /&gt;
&lt;br /&gt;
[[it:getProjectileCreator]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleTurnVelocity&amp;diff=31158</id>
		<title>GetVehicleTurnVelocity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleTurnVelocity&amp;diff=31158"/>
		<updated>2012-05-24T16:18:48Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to retrieve a vehicle's turning velocity for each axis.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getVehicleTurnVelocity ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you wish to get the turning velocities of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 3 ''floats'' that represent the vehicle's turning velocity on the x, y and z axis or ''false'' if wrong arguments were passed.&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 shows the current turn velocity of the vehicle that you're in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;geturnvelocity&amp;quot;, function(player)&lt;br /&gt;
    if not isPedInVehicle(player) then return end&lt;br /&gt;
    local veh = getPedOccupiedVehicle(player)&lt;br /&gt;
    local vx, vy, vz = getVehicleTurnVelocity(veh)&lt;br /&gt;
    outputChatBox(&amp;quot;Vehicle's turn velocity is: X: &amp;quot;..vx..&amp;quot; Y: &amp;quot;..vy..&amp;quot; Z: &amp;quot;..vz, player, 0, 255, 0, false)&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;
==See Also==&lt;br /&gt;
&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31156</id>
		<title>GetProjectileCreator</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31156"/>
		<updated>2012-05-24T16:10:40Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Removed from 'Needs Example' list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function returns the creator of the specified projectile.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element getProjectileCreator ( projectile theProjectile )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theProjectile:''' The [[projectiles| projectile]] element which creator you want to retrieve.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the element which created the projectile if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will output a message in the chatbox saying who created&lt;br /&gt;
The projectile.&lt;br /&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientProjectileCreation&amp;quot;, root, function(projectile)&lt;br /&gt;
    local creator = getProjectileCreator(projectile)&lt;br /&gt;
    if (getElementType(creator) == &amp;quot;player&amp;quot;) then&lt;br /&gt;
        local pName = getPlayerName(creator)&lt;br /&gt;
	local projectileID = getProjectileType(projectile)&lt;br /&gt;
        outputChatBox(pName..&amp;quot; created a projectile! (ID: &amp;quot;..projectileID..&amp;quot;)&amp;quot;, 255, 200, 0, false)&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;
==See also==&lt;br /&gt;
{{Client projectile functions}}&lt;br /&gt;
&lt;br /&gt;
[[it:getProjectileCreator]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31155</id>
		<title>GetProjectileCreator</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31155"/>
		<updated>2012-05-24T16:08:08Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Added example description&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
This function returns the creator of the specified projectile.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element getProjectileCreator ( projectile theProjectile )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theProjectile:''' The [[projectiles| projectile]] element which creator you want to retrieve.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the element which created the projectile if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will output a message in the chatbox saying who created&lt;br /&gt;
The projectile.&lt;br /&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientProjectileCreation&amp;quot;, root, function(projectile)&lt;br /&gt;
    local creator = getProjectileCreator(projectile)&lt;br /&gt;
    if (getElementType(creator) == &amp;quot;player&amp;quot;) then&lt;br /&gt;
        local pName = getPlayerName(creator)&lt;br /&gt;
	local projectileID = getProjectileType(projectile)&lt;br /&gt;
        outputChatBox(pName..&amp;quot; created a projectile! (ID: &amp;quot;..projectileID..&amp;quot;)&amp;quot;, 255, 200, 0, false)&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;
==See also==&lt;br /&gt;
{{Client projectile functions}}&lt;br /&gt;
&lt;br /&gt;
[[it:getProjectileCreator]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31153</id>
		<title>GetProjectileCreator</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31153"/>
		<updated>2012-05-24T16:03:31Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
This function returns the creator of the specified projectile.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element getProjectileCreator ( projectile theProjectile )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theProjectile:''' The [[projectiles| projectile]] element which creator you want to retrieve.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the element which created the projectile if successful, ''false'' otherwise.&lt;br /&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientProjectileCreation&amp;quot;, root, function(projectile)&lt;br /&gt;
    local creator = getProjectileCreator(projectile)&lt;br /&gt;
    if (getElementType(creator) == &amp;quot;player&amp;quot;) then&lt;br /&gt;
        local pName = getPlayerName(creator)&lt;br /&gt;
	local projectileID = getProjectileType(projectile)&lt;br /&gt;
        outputChatBox(pName..&amp;quot; created a projectile! (ID: &amp;quot;..projectileID..&amp;quot;)&amp;quot;, 255, 200, 0, false)&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;
==See also==&lt;br /&gt;
{{Client projectile functions}}&lt;br /&gt;
&lt;br /&gt;
[[it:getProjectileCreator]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31152</id>
		<title>GetProjectileCreator</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetProjectileCreator&amp;diff=31152"/>
		<updated>2012-05-24T15:59:56Z</updated>

		<summary type="html">&lt;p&gt;Mehmet Soedir: Added example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
This function returns the creator of the specified projectile.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element getProjectileCreator ( projectile theProjectile )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theProjectile:''' The [[projectiles| projectile]] element which creator you want to retrieve.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns the element which created the projectile if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientProjectileCreation&amp;quot;, root, function(projectile)&lt;br /&gt;
    local creator = getProjectileCreator(projectile)&lt;br /&gt;
    if (getElementType(creator) == &amp;quot;player&amp;quot;) then&lt;br /&gt;
        local pName = getPlayerName(creator)&lt;br /&gt;
	local projectileID = getProjectileType(projectile)&lt;br /&gt;
        outputChatBox(pName..&amp;quot; created a projectile! (ID: &amp;quot;..projectileID..&amp;quot;)&amp;quot;, 255, 200, 0, false)&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;
{{Client projectile functions}}&lt;br /&gt;
&lt;br /&gt;
[[it:getProjectileCreator]]&lt;/div&gt;</summary>
		<author><name>Mehmet Soedir</name></author>
	</entry>
</feed>