<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/GetVehicleRotorSpeed?action=history&amp;feed=atom</id>
	<title>GetVehicleRotorSpeed - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/GetVehicleRotorSpeed?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleRotorSpeed&amp;action=history"/>
	<updated>2026-05-09T16:33:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleRotorSpeed&amp;diff=78726&amp;oldid=prev</id>
		<title>Nurupo: Created page with &quot;__NOTOC__ {{Client function}} Retrieves the speed at which the rotor of a helicopter or plane rotates.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; float getVehicleRotorSpeed ( vehicle theVehicle ) &lt;/syntaxhighlight&gt; {{OOP||vehicle:getVehicleRotorSpeed|vehicleRotorSpeed|setVehicleRotorSpeed}}  ===Required Arguments=== *'''theVehicle:''' the vehicle element (helicopter or plane) to get the rotor speed of.  ===Returns=== Returns the rotor speed if successful. This is 0 whe...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleRotorSpeed&amp;diff=78726&amp;oldid=prev"/>
		<updated>2023-12-21T11:16:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} Retrieves the speed at which the rotor of a helicopter or plane rotates.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float getVehicleRotorSpeed ( vehicle theVehicle ) &amp;lt;/syntaxhighlight&amp;gt; {{OOP||&lt;a href=&quot;/wiki/Vehicle&quot; class=&quot;mw-redirect&quot; title=&quot;Vehicle&quot;&gt;vehicle&lt;/a&gt;:getVehicleRotorSpeed|vehicleRotorSpeed|setVehicleRotorSpeed}}  ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;theVehicle:&amp;#039;&amp;#039;&amp;#039; the vehicle element (helicopter or plane) to get the rotor speed of.  ===Returns=== Returns the rotor speed if successful. This is 0 whe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Retrieves the speed at which the rotor of a helicopter or plane rotates.&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 getVehicleRotorSpeed ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[vehicle]]:getVehicleRotorSpeed|vehicleRotorSpeed|setVehicleRotorSpeed}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theVehicle:''' the vehicle element (helicopter or plane) to get the rotor speed of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the rotor speed if successful. This is 0 when the helicopter or plane is stationary, and about 0.2 when it is fully spun up. It can be negative if the rotor rotates counter-clockwise. Returns ''false'' in case of failure (an invalid element or a vehicle element that is not a helicopter or plane was passed).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the rotor speed of the vehicle the player is in and outputs it in the chat box if it's a helicopter or plane.&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;
function rotorSpeed() &lt;br /&gt;
    local theVehicle = getPedOccupiedVehicle (localPlayer)&lt;br /&gt;
    if theVehicle then &lt;br /&gt;
      local controller = getVehicleController (theVehicle)&lt;br /&gt;
        if controller == localPlayer then &lt;br /&gt;
          local vehicleType = getVehicleType(theVehicle)&lt;br /&gt;
	  if vehicleType == &amp;quot;Helicopter&amp;quot; or vehicleType == &amp;quot;Plane&amp;quot; then &lt;br /&gt;
             outputChatBox(&amp;quot;Your vehicle rotor speed: &amp;quot;..math.ceil(getVehicleRotorSpeed(theVehicle)),0,255,0)&lt;br /&gt;
          end &lt;br /&gt;
       end &lt;br /&gt;
   end &lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;grs&amp;quot;,rotorSpeed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Nurupo</name></author>
	</entry>
</feed>