getVehicleRotorSpeed | Multi Theft Auto: Wiki Skip to content

getVehicleRotorSpeed

Client-side
Server-side
Shared

Pair: setVehicleRotorSpeed

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Retrieves the speed at which the rotor of a helicopter or plane rotates.

Syntax

getVehicleRotorSpeed ( )

Code Examples

client
function rotorSpeed()
local theVehicle = getPedOccupiedVehicle (localPlayer)
if theVehicle then
local controller = getVehicleController (theVehicle)
if controller == localPlayer then
local vehicleType = getVehicleType(theVehicle)
if vehicleType == "Helicopter" or vehicleType == "Plane" then
outputChatBox("Your vehicle rotor speed: "..math.ceil(getVehicleRotorSpeed(theVehicle)),0,255,0)
end
end
end
end
addCommandHandler("grs",rotorSpeed)

See Also

Vehicle Functions