<?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=XFawkes</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=XFawkes"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/XFawkes"/>
	<updated>2026-05-05T20:19:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetHeliBladeCollisionsEnabled&amp;diff=37107</id>
		<title>SetHeliBladeCollisionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetHeliBladeCollisionsEnabled&amp;diff=37107"/>
		<updated>2013-09-13T13:13:01Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function changes the state of the helicopter blades collisions on the specified vehicle.&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 setHeliBladeCollisionsEnabled ( vehicle theVehicle, bool collisions )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The helicopter that will have the blades collisions set.&lt;br /&gt;
*'''collisions:''' The state of the helicopter blades collisions.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions are set for the specified vehicle, ''false'' if the collisions can't be set for the specified vehicle, if the vehicle is not a helicopter or if invalid arguments are specified.&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 disables blades collisions when a player enters a helicopter as a driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleEnter ( thePlayer, seat, jacked )&lt;br /&gt;
	--If the player entered a helicopter&lt;br /&gt;
	if ( getVehicleType ( source ) == &amp;quot;Helicopter&amp;quot; ) then&lt;br /&gt;
		--If the player entered as a driver&lt;br /&gt;
		if ( seat == 0 ) then&lt;br /&gt;
			-- Turn off collisions&lt;br /&gt;
			setHeliBladeCollisionsEnabled ( source, false )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientVehicleEnter&amp;quot;, root, onVehicleEnter )&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;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetHeliBladeCollisionsEnabled&amp;diff=37106</id>
		<title>GetHeliBladeCollisionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetHeliBladeCollisionsEnabled&amp;diff=37106"/>
		<updated>2013-09-13T13:12:40Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function gets the state of the helicopter blades collisions on the specified vehicle.&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 getHeliBladeCollisionsEnabled ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle that will be checked.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions are enabled for specified vehicle, ''false'' if the collisions aren't enabled for the specified vehicle, if the vehicle is not a helicopter or if invalid arguments are specified.&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 shows the blade collisions state&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleEnter ( seat, jacked )&lt;br /&gt;
	--If the player entered a helicopter&lt;br /&gt;
	if ( getVehicleType ( source ) == &amp;quot;Helicopter&amp;quot; ) then&lt;br /&gt;
		local state = getHeliBladeCollisionsEnabled‎(source )&lt;br /&gt;
		outputChatBox(&amp;quot;Helicopter blades collisions are turned &amp;quot;.. (state and &amp;quot;on&amp;quot; or &amp;quot;off&amp;quot;) )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientVehicleEnter&amp;quot;, localPlayer, onVehicleEnter )&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;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetHeliBladeCollisionsEnabled&amp;diff=37105</id>
		<title>GetHeliBladeCollisionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetHeliBladeCollisionsEnabled&amp;diff=37105"/>
		<updated>2013-09-13T13:10:50Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function gets the state of the helicopter blades collisions on the specified vehicle.&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 getHeliBladeCollisionsEnabled ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle that will be checked.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions are enabled for specified vehicle, ''false'' if the collisions aren't enabled for the specified vehicle, if the vehicle is not a helicopter or if invalid arguments are specified.&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 disables blades collisions when a player enters a helicopter as a driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleEnter ( thePlayer, seat, jacked )&lt;br /&gt;
	--If the player entered a helicopter&lt;br /&gt;
	if ( getVehicleType ( source ) == &amp;quot;Helicopter&amp;quot; ) then&lt;br /&gt;
		--If the player entered as a driver&lt;br /&gt;
		if ( seat == 0 ) then&lt;br /&gt;
			-- Turn off collisions&lt;br /&gt;
			setHeliBladeCollisionsEnabled ( source, false )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onVehicleEnter&amp;quot;, root, onVehicleEnter )&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;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetHeliBladeCollisionsEnabled&amp;diff=37104</id>
		<title>GetHeliBladeCollisionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetHeliBladeCollisionsEnabled&amp;diff=37104"/>
		<updated>2013-09-13T13:10:28Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function gets the state of the helicopter blades collisions on the specified vehicle.&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 getHeliBladeCollisionsEnabled ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle that will be checked.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions are enabled for specified vehicle, ''false'' if the collisions aren't enabled for the specified vehicle, if the vehicle is not a helicopter or if invalid arguments are specified.&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 disables blades collisions when a player enters a helicopter as a driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleEnter ( thePlayer, seat, jacked )&lt;br /&gt;
	--If the player entered a helicopter&lt;br /&gt;
	if ( table.find({425,487,488,497,563,447,469},getElementModel(source)) ) then&lt;br /&gt;
		--If the player entered as a driver&lt;br /&gt;
		if ( seat == 0 ) then&lt;br /&gt;
			--If blade collisions were off&lt;br /&gt;
			if not getHeliBladeCollisionsEnabled( source ) then&lt;br /&gt;
				setHeliBladeCollisionsEnabled( source, true )&lt;br /&gt;
			else&lt;br /&gt;
				setHeliBladeCollisionsEnabled( source, false )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onVehicleEnter&amp;quot;, root, onVehicleEnter )&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;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetHeliBladeCollisionsEnabled&amp;diff=37103</id>
		<title>SetHeliBladeCollisionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetHeliBladeCollisionsEnabled&amp;diff=37103"/>
		<updated>2013-09-13T13:08:12Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function changes the state of the helicopter blades collisions on the specified vehicle.&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 setHeliBladeCollisionsEnabled ( vehicle theVehicle, bool collisions )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The helicopter that will have the blades collisions set.&lt;br /&gt;
*'''collisions:''' The state of the helicopter blades collisions.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions are set for the specified vehicle, ''false'' if the collisions can't be set for the specified vehicle, if the vehicle is not a helicopter or if invalid arguments are specified.&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 disables blades collisions when a player enters a helicopter as a driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleEnter ( thePlayer, seat, jacked )&lt;br /&gt;
	--If the player entered a helicopter&lt;br /&gt;
	if ( getVehicleType ( source ) == &amp;quot;Helicopter&amp;quot; ) then&lt;br /&gt;
		--If the player entered as a driver&lt;br /&gt;
		if ( seat == 0 ) then&lt;br /&gt;
			-- Turn off collisions&lt;br /&gt;
			setHeliBladeCollisionsEnabled ( source, false )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onVehicleEnter&amp;quot;, root, onVehicleEnter )&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;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetHeliBladeCollisionsEnabled&amp;diff=37091</id>
		<title>GetHeliBladeCollisionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetHeliBladeCollisionsEnabled&amp;diff=37091"/>
		<updated>2013-09-12T22:50:55Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: Created page with &amp;quot;__NOTOC__  {{Server client function}} This function gets the state of the helicopter blades collisions on the specified vehicle.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool getHeliBladeColli...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function gets the state of the helicopter blades collisions on the specified vehicle.&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 getHeliBladeCollisionsEnabled ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle that will have the sirens set&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions are enabled for specified vehicle, ''false'' if the collisions aren't enabled for the specified vehicle, if the vehicle is not a helicopter or if invalid arguments are specified.&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 disables blades collisions when a player enters a helicopter as a driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleEnter ( thePlayer, seat, jacked )&lt;br /&gt;
	--If the player entered a helicopter&lt;br /&gt;
	if ( table.find({425,487,488,497,563,447,469},getElementModel(source)) ) then&lt;br /&gt;
		--If the player entered as a driver&lt;br /&gt;
		if ( seat == 0 ) then&lt;br /&gt;
			--If blade collisions were off&lt;br /&gt;
			if not getHeliBladeCollisionsEnabled( source ) then&lt;br /&gt;
				setHeliBladeCollisionsEnabled( source, true )&lt;br /&gt;
			else&lt;br /&gt;
				setHeliBladeCollisionsEnabled( source, false )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onVehicleEnter&amp;quot;, root, onVehicleEnter )&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;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetHeliBladeCollisionsEnabled&amp;diff=37090</id>
		<title>SetHeliBladeCollisionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetHeliBladeCollisionsEnabled&amp;diff=37090"/>
		<updated>2013-09-12T22:49:50Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: Created page with &amp;quot;__NOTOC__  {{Server client function}} This function changes the state of the helicopter blades collisions on the specified vehicle.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setHeliBladeCo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function changes the state of the helicopter blades collisions on the specified vehicle.&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 setHeliBladeCollisionsEnabled ( vehicle theVehicle , bool collisions )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle that will have the sirens set&lt;br /&gt;
*'''collisions:''' The state of the helicopter blades collisions&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions are set for the specified vehicle, ''false'' if the collisions can't be set for the specified vehicle, if the vehicle is not a helicopter or if invalid arguments are specified.&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 disables blades collisions when a player enters a helicopter as a driver.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onVehicleEnter ( thePlayer, seat, jacked )&lt;br /&gt;
	--If the player entered a helicopter&lt;br /&gt;
	if ( table.find({425,487,488,497,563,447,469},getElementModel(source)) ) then&lt;br /&gt;
		--If the player entered as a driver&lt;br /&gt;
		if ( seat == 0 ) then&lt;br /&gt;
			--If blade collisions were off&lt;br /&gt;
			if not getHeliBladeCollisionsEnabled( source ) then&lt;br /&gt;
				setHeliBladeCollisionsEnabled( source, true )&lt;br /&gt;
			else&lt;br /&gt;
				setHeliBladeCollisionsEnabled( source, false )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onVehicleEnter&amp;quot;, root, onVehicleEnter )&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;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetKeyBoundToFunction&amp;diff=37000</id>
		<title>GetKeyBoundToFunction</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetKeyBoundToFunction&amp;diff=37000"/>
		<updated>2013-08-30T14:00:11Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
getKeyBoundToFunction allows retrieval of the first key bound to a function.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string getKeyBoundToFunction( player thePlayer, function theFunction )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you are checking the function bound to a key&lt;br /&gt;
*'''theFunction:''' The function in which you would like to check the bound key&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string of the first key the function was bound to.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string getKeyBoundToFunction( function theFunction )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theFunction:''' The function in which you would like to check the bound key&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string of the first key the function was bound to.&lt;br /&gt;
&amp;lt;/section&amp;gt;&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;
/key command gives bounded key to our chat function&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function chat ()&lt;br /&gt;
outputChatBox(&amp;quot;Test&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
bindKey(&amp;quot;F2&amp;quot;,&amp;quot;down&amp;quot;,chat)&lt;br /&gt;
&lt;br /&gt;
function key()&lt;br /&gt;
keyy = getKeyBoundToFunction(chat)&lt;br /&gt;
outputChatBox(keyy)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;key&amp;quot;,key)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example written by '''Samurai'''&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetKeyBoundToFunction&amp;diff=36999</id>
		<title>GetKeyBoundToFunction</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetKeyBoundToFunction&amp;diff=36999"/>
		<updated>2013-08-30T13:59:46Z</updated>

		<summary type="html">&lt;p&gt;XFawkes: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
getKeyBoundToFunction allows retrieval of the first key bound to a function.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string getKeyBoundToFunction( player thePlayer, function theFunction )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you are checking the function bound to a key&lt;br /&gt;
*'''theFunction:''' The function in which you would like to check the bound key&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string of the first key the function was bound to.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string getKeyBoundToFunction(function theFunction )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theFunction:''' The function in which you would like to check the bound key&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string of the first key the function was bound to.&lt;br /&gt;
&amp;lt;/section&amp;gt;&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;
/key command gives bounded key to our chat function&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function chat ()&lt;br /&gt;
outputChatBox(&amp;quot;Test&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
bindKey(&amp;quot;F2&amp;quot;,&amp;quot;down&amp;quot;,chat)&lt;br /&gt;
&lt;br /&gt;
function key()&lt;br /&gt;
keyy = getKeyBoundToFunction(chat)&lt;br /&gt;
outputChatBox(keyy)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;key&amp;quot;,key)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This example written by '''Samurai'''&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>XFawkes</name></author>
	</entry>
</feed>