<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=GreenFanta</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=GreenFanta"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/GreenFanta"/>
	<updated>2026-06-04T05:30:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::engineHealth&amp;diff=9930</id>
		<title>Vehicle::engineHealth</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::engineHealth&amp;diff=9930"/>
		<updated>2018-03-18T16:35:19Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This functions using for getting engine health.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: this property is read-only. For edit health use [[Vehicle::repair]]&#039;&#039;&#039;&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let engineHealth = vehicle.engineHealth&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::getVariable&amp;diff=9918</id>
		<title>Entity::getVariable</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::getVariable&amp;diff=9918"/>
		<updated>2018-03-11T13:11:36Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Function&#039;&#039;&#039;: Gets a custom data from an entity.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
value entity.getVariable(name); // Returns null if key &#039;name&#039; does not exist.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
{{ServerSide}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Supposed you want to get a vehicle you bound with a player&lt;br /&gt;
let veh = player.getVariable(&#039;veh&#039;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9834</id>
		<title>Entity::setAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9834"/>
		<updated>2018-03-04T13:37:05Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;skin - everything alpha except skin&amp;lt;br&amp;gt;Set entity alpha level. Ranging from 0 to 255 but chnages occur after every 20 percent (after every 51).&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setAlpha(alphaLevel);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
&lt;br /&gt;
=== Old Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
*&#039;&#039;&#039;skin:&#039;&#039;&#039; Boolean&lt;br /&gt;
** The &amp;quot;skin&amp;quot; parameter is not used and will cause argument count exceptions if used.&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #AE4040; color: #FFFFFF; border: 2px solid #408DAE;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Client-Side&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.add(&#039;enableCollisions&#039;, () =&amp;gt; {&lt;br /&gt;
	mp.players.forEach(player =&amp;gt; {&lt;br /&gt;
		mp.players.local.vehicle.setNoCollision(player.vehicle.handle, true);&lt;br /&gt;
		player.vehicle.setAlpha(255);&lt;br /&gt;
		player.setAlpha(255);&lt;br /&gt;
	});&lt;br /&gt;
});&lt;br /&gt;
mp.events.add(&#039;disableCollisions&#039;, () =&amp;gt; {&lt;br /&gt;
	mp.players.forEach(player =&amp;gt; {&lt;br /&gt;
		mp.players.local.vehicle.setNoCollision(player.vehicle.handle, false);&lt;br /&gt;
		player.vehicle.setAlpha(102);&lt;br /&gt;
		player.setAlpha(255);&lt;br /&gt;
	});&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=9833</id>
		<title>Key::bind</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=9833"/>
		<updated>2018-03-04T13:31:06Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: /* Parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function binds the key .&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;keycode&#039;&#039;&#039; - hexadecimal code of [https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731 key].&lt;br /&gt;
* &#039;&#039;&#039;keyhold&#039;&#039;&#039; - call function as long as key is held pressed? (Bool)&lt;br /&gt;
* &#039;&#039;&#039;handler&#039;&#039;&#039; - function-handler.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example calling server event.&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #AE4040; color: #FFFFFF; border: 2px solid #408DAE;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Client-Side&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// 0x71 is the F2 key code&lt;br /&gt;
mp.keys.bind(0x71, true, function() {&lt;br /&gt;
    mp.events.callRemote(&#039;keypress:F2&#039;); // Calling server event &amp;quot;keypress:F2&amp;quot;&lt;br /&gt;
    mp.gui.chat.push(&#039;F2 key is pressed. This message will be shown until you release the key, because &amp;quot;keyhold&amp;quot; is true.&#039;);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{KeyBinding_function_c}}&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=9832</id>
		<title>Key::bind</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=9832"/>
		<updated>2018-03-04T13:30:51Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: /* Parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function binds the key .&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;keycode&#039;&#039;&#039; - code of [https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731 key] (Hexadecimal).&lt;br /&gt;
* &#039;&#039;&#039;keyhold&#039;&#039;&#039; - call function as long as key is held pressed? (Bool)&lt;br /&gt;
* &#039;&#039;&#039;handler&#039;&#039;&#039; - function-handler.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example calling server event.&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #AE4040; color: #FFFFFF; border: 2px solid #408DAE;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Client-Side&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// 0x71 is the F2 key code&lt;br /&gt;
mp.keys.bind(0x71, true, function() {&lt;br /&gt;
    mp.events.callRemote(&#039;keypress:F2&#039;); // Calling server event &amp;quot;keypress:F2&amp;quot;&lt;br /&gt;
    mp.gui.chat.push(&#039;F2 key is pressed. This message will be shown until you release the key, because &amp;quot;keyhold&amp;quot; is true.&#039;);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{KeyBinding_function_c}}&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9831</id>
		<title>Entity::setAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9831"/>
		<updated>2018-03-04T13:29:26Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: /* Old Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;skin - everything alpha except skin&amp;lt;br&amp;gt;Set entity alpha level. Ranging from 0 to 255 but chnages occur after every 20 percent (after every 51).&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setAlpha(alphaLevel);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
&lt;br /&gt;
=== Old Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
*&#039;&#039;&#039;skin:&#039;&#039;&#039; Boolean&lt;br /&gt;
** The &amp;quot;skin&amp;quot; parameter is not used and will cause argument count exceptions if used.&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.add(&#039;enableCollisions&#039;, () =&amp;gt; {&lt;br /&gt;
	mp.players.forEach(player =&amp;gt; {&lt;br /&gt;
		mp.players.local.vehicle.setNoCollision(player.vehicle.handle, true);&lt;br /&gt;
		player.vehicle.setAlpha(255);&lt;br /&gt;
		player.setAlpha(255);&lt;br /&gt;
	});&lt;br /&gt;
});&lt;br /&gt;
mp.events.add(&#039;disableCollisions&#039;, () =&amp;gt; {&lt;br /&gt;
	mp.players.forEach(player =&amp;gt; {&lt;br /&gt;
		mp.players.local.vehicle.setNoCollision(player.vehicle.handle, false);&lt;br /&gt;
		player.vehicle.setAlpha(102);&lt;br /&gt;
		player.setAlpha(255);&lt;br /&gt;
	});&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9830</id>
		<title>Entity::setAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9830"/>
		<updated>2018-03-04T13:26:46Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;skin - everything alpha except skin&amp;lt;br&amp;gt;Set entity alpha level. Ranging from 0 to 255 but chnages occur after every 20 percent (after every 51).&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setAlpha(alphaLevel);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
&lt;br /&gt;
=== Old Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
*&#039;&#039;&#039;skin:&#039;&#039;&#039; Boolean&lt;br /&gt;
** The &amp;quot;skin&amp;quot; parameter is not used will cause argument count exceptions if used.&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.add(&#039;enableCollisions&#039;, () =&amp;gt; {&lt;br /&gt;
	mp.players.forEach(player =&amp;gt; {&lt;br /&gt;
		mp.players.local.vehicle.setNoCollision(player.vehicle.handle, true);&lt;br /&gt;
		player.vehicle.setAlpha(255);&lt;br /&gt;
		player.setAlpha(255);&lt;br /&gt;
	});&lt;br /&gt;
});&lt;br /&gt;
mp.events.add(&#039;disableCollisions&#039;, () =&amp;gt; {&lt;br /&gt;
	mp.players.forEach(player =&amp;gt; {&lt;br /&gt;
		mp.players.local.vehicle.setNoCollision(player.vehicle.handle, false);&lt;br /&gt;
		player.vehicle.setAlpha(102);&lt;br /&gt;
		player.setAlpha(255);&lt;br /&gt;
	});&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9829</id>
		<title>Entity::setAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9829"/>
		<updated>2018-03-04T13:25:21Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;skin - everything alpha except skin&amp;lt;br&amp;gt;Set entity alpha level. Ranging from 0 to 255 but chnages occur after every 20 percent (after every 51).&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setAlpha(alphaLevel);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
&lt;br /&gt;
=== Old Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
*&#039;&#039;&#039;skin:&#039;&#039;&#039; Boolean&lt;br /&gt;
** The &amp;quot;skin&amp;quot; parameter is not used will cause argument count exceptions if used.&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9828</id>
		<title>Entity::setAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setAlpha&amp;diff=9828"/>
		<updated>2018-03-04T13:08:48Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;skin - everything alpha except skin&amp;lt;br&amp;gt;Set entity alpha level. Ranging from 0 to 255 but chnages occur after every 20 percent (after every 51).&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setAlpha(alphaLevel, skin);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;alphaLevel:&#039;&#039;&#039; int&lt;br /&gt;
*&#039;&#039;&#039;skin:&#039;&#039;&#039; Boolean&lt;br /&gt;
** The &amp;quot;skin&amp;quot; parameter is not used with vehicles and will cause errors if used.&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setNoCollision&amp;diff=9800</id>
		<title>Entity::setNoCollision</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setNoCollision&amp;diff=9800"/>
		<updated>2018-03-01T20:16:03Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Calling this function, regardless of the &#039;unknown&#039; value, disabled collision between two entities.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Importance of entity1 and 2 order is unclear.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setNoCollision(entity2, collision);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;entity2:&#039;&#039;&#039; Entity handle&lt;br /&gt;
*&#039;&#039;&#039;collision:&#039;&#039;&#039; Boolean&lt;br /&gt;
** False = no collison, true = enabled collisions&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Causes_of_death&amp;diff=9770</id>
		<title>Causes of death</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Causes_of_death&amp;diff=9770"/>
		<updated>2018-03-01T17:24:04Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Causes of death by weapons can be seen here:&#039;&#039;&#039; [[Weapons]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center;&amp;quot;&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;padding:10px 100px;&amp;quot;| Cause&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;padding:10px 50px;&amp;quot;| Hash&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;padding:10px 50px;&amp;quot;| Hex&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; style=&amp;quot;padding:10px 50px;&amp;quot;| Notes&lt;br /&gt;
|-&lt;br /&gt;
|weapon_electric_fence||style=&amp;quot;color:blue;&amp;quot;|2461879995||style=&amp;quot;color:blue;&amp;quot;|0x92BD4EBB||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_hit_by_water_cannon||style=&amp;quot;color:blue;&amp;quot;|3425972830||style=&amp;quot;color:blue;&amp;quot;|0xCC34325E||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_rammed_by_car||style=&amp;quot;color:blue;&amp;quot;|133987706||style=&amp;quot;color:blue;&amp;quot;|0x7FC7D7A||Death from world after exiting (or being exited from) vehicle (high speed exit/flying out of windscreen)&lt;br /&gt;
|-&lt;br /&gt;
|weapon_run_over_by_car||style=&amp;quot;color:blue;&amp;quot;|2741846334||style=&amp;quot;color:blue;&amp;quot;|0xA36D413E||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_fall||style=&amp;quot;color:blue;&amp;quot;|3452007600||style=&amp;quot;color:blue;&amp;quot;|0xCDC174B0||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_animal||style=&amp;quot;color:blue;&amp;quot;|4194021054||style=&amp;quot;color:blue;&amp;quot;|0xF9FBAEBE||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_airstrike_rocket||style=&amp;quot;color:blue;&amp;quot;|324506233||style=&amp;quot;color:blue;&amp;quot;|0x13579279||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_bleeding||style=&amp;quot;color:blue;&amp;quot;|2339582971||style=&amp;quot;color:blue;&amp;quot;|0x8B7333FB||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_briefcase||style=&amp;quot;color:blue;&amp;quot;|2294779575||style=&amp;quot;color:blue;&amp;quot;|0x88C78EB7||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_briefcase_02||style=&amp;quot;color:blue;&amp;quot;|28811031||style=&amp;quot;color:blue;&amp;quot;|0x1B79F17||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_cougar||style=&amp;quot;color:blue;&amp;quot;|148160082||style=&amp;quot;color:blue;&amp;quot;|0x8D4BE52||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_barbed_wire||style=&amp;quot;color:blue;&amp;quot;|1223143800||style=&amp;quot;color:blue;&amp;quot;|0x48E7B178||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_drowning||style=&amp;quot;color:blue;&amp;quot;|4284007675||style=&amp;quot;color:blue;&amp;quot;|0xFF58C4FB||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_drowning_in_vehicle||style=&amp;quot;color:blue;&amp;quot;|1936677264||style=&amp;quot;color:blue;&amp;quot;|0x736F5990||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_explosion||style=&amp;quot;color:blue;&amp;quot;|539292904||style=&amp;quot;color:blue;&amp;quot;|0x2024F4E8||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_exhaustion||style=&amp;quot;color:blue;&amp;quot;|910830060||style=&amp;quot;color:blue;&amp;quot;|0x364A29EC||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_fire||style=&amp;quot;color:blue;&amp;quot;|3750660587||style=&amp;quot;color:blue;&amp;quot;|0xDF8E89EB||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_heli_crash||style=&amp;quot;color:blue;&amp;quot;|341774354||style=&amp;quot;color:blue;&amp;quot;|0x145F1012||&lt;br /&gt;
|-&lt;br /&gt;
|weapon_vehicle_rocket||style=&amp;quot;color:blue;&amp;quot;|3204302209||style=&amp;quot;color:blue;&amp;quot;|0xBEFDC581||&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=PlayerDeath&amp;diff=9758</id>
		<title>PlayerDeath</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=PlayerDeath&amp;diff=9758"/>
		<updated>2018-03-01T17:06:17Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is triggered when a player dies.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039;  - player, which died.&lt;br /&gt;
* &#039;&#039;&#039;reason &#039;&#039;&#039; - cause hash of death (&#039;&#039;&#039;list causes:&#039;&#039;&#039; [[Causes of death| Causes]]).&lt;br /&gt;
* &#039;&#039;&#039;killer&#039;&#039;&#039;  - who killed the player.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs chat message, when player dies.&lt;br /&gt;
{{ServerSide}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; style=&amp;quot;width: 98%; background-color: #E4F1FE;&amp;quot;&amp;gt;&lt;br /&gt;
function playerDeathHandler(player, reason, killer) {&lt;br /&gt;
   const deathName = player.name;&lt;br /&gt;
   const killerName = killer.name;&lt;br /&gt;
   if(reason == 341774354) {&lt;br /&gt;
       mp.players.broadcast(`${deathName} died in a chopper!`);&lt;br /&gt;
       return;&lt;br /&gt;
   }&lt;br /&gt;
   mp.players.broadcast(`${killerName} killed ${deathName}. Reason: ${reason}`);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
mp.events.add(&amp;quot;playerDeath&amp;quot;, playerDeathHandler);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Player_events}}&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=PlayerDeath&amp;diff=9757</id>
		<title>PlayerDeath</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=PlayerDeath&amp;diff=9757"/>
		<updated>2018-03-01T17:05:10Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is triggered when a player dies.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039;  - player, which died.&lt;br /&gt;
* &#039;&#039;&#039;reason &#039;&#039;&#039; - cause hash of death (&#039;&#039;&#039;list causes:&#039;&#039;&#039; [[Causes of death| Causes]]).&lt;br /&gt;
* &#039;&#039;&#039;killer&#039;&#039;&#039;  - who killed the player.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs chat message, when player dies.&lt;br /&gt;
{{ServerSide}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; style=&amp;quot;width: 98%; background-color: #E4F1FE;&amp;quot;&amp;gt;&lt;br /&gt;
function playerDeathHandler(player, reason, killer) {&lt;br /&gt;
   const deathName = player.name;&lt;br /&gt;
   const killerName = killer.name;&lt;br /&gt;
&lt;br /&gt;
   mp.players.broadcast(`${killerName} killed ${deathName}. Reason: ${reason}`);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
mp.events.add(&amp;quot;playerDeath&amp;quot;, playerDeathHandler);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Player_events}}&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Trigger&amp;diff=9756</id>
		<title>Trigger</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Trigger&amp;diff=9756"/>
		<updated>2018-03-01T16:54:15Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
Sends data/trigger events from html to your clientside JS file.&lt;br /&gt;
&lt;br /&gt;
== Syntax == &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;typescript&amp;quot;&amp;gt;&lt;br /&gt;
mp.trigger(&#039;event&#039;, params)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Required Arguments&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;event&#039;&#039;&#039;: &#039;&#039;&#039;&amp;lt;font color=&#039;green&#039;&amp;gt;String&amp;lt;/font&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;params&#039;&#039;&#039;: &#039;&#039;&#039;&amp;lt;font color = &#039;red&#039;&amp;gt;int&amp;lt;/font&amp;gt;&#039;&#039;&#039; or &#039;&#039;&#039;&amp;lt;font color = &#039;green&#039;&amp;gt;String&amp;lt;/font&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Return Value&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Unknown&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #40aeae; color: #FFFFFF; border: 2px solid #40aeae;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;CEF&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
    mp.trigger(&#039;CEFDoneUsingBrowser&#039;);&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Client-Side&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let activeBrowser = null;&lt;br /&gt;
mp.events.add(&#039;guiReady&#039;, () =&amp;gt; {&lt;br /&gt;
    activeBrowser = mp.browsers.new(&#039;package://menu/modes/race.html&#039;);&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
mp.events.add(&#039;CEFDoneUsingBrowser&#039;, () =&amp;gt; {&lt;br /&gt;
    activeBrowser.destroy();&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setCollision&amp;diff=9635</id>
		<title>Entity::setCollision</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setCollision&amp;diff=9635"/>
		<updated>2018-02-25T11:46:03Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setCollision(toggle, keepPhysics);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;toggle:&#039;&#039;&#039; Boolean&lt;br /&gt;
** Setting &#039;toggle&#039; to false will disable all collisions and you will fall through the world.&lt;br /&gt;
*&#039;&#039;&#039;keepPhysics:&#039;&#039;&#039; Boolean&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setCollision&amp;diff=9634</id>
		<title>Entity::setCollision</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setCollision&amp;diff=9634"/>
		<updated>2018-02-25T11:45:39Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setCollision(toggle, keepPhysics);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;toggle:&#039;&#039;&#039; Boolean&lt;br /&gt;
*&#039;&#039;&#039;keepPhysics:&#039;&#039;&#039; Boolean&lt;br /&gt;
* Setting &#039;toggle&#039; to false will disable all collisions and you will fall through the world.&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::setCollision&amp;diff=9633</id>
		<title>Entity::setCollision</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::setCollision&amp;diff=9633"/>
		<updated>2018-02-25T11:45:28Z</updated>

		<summary type="html">&lt;p&gt;GreenFanta: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.setCollision(toggle, keepPhysics);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Setting &#039;toggle&#039; to false will disable all collisions and you will fall through the world.&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;toggle:&#039;&#039;&#039; Boolean&lt;br /&gt;
*&#039;&#039;&#039;keepPhysics:&#039;&#039;&#039; Boolean&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>GreenFanta</name></author>
	</entry>
</feed>