Jump to content

setHelicopterRotorSpeed doesn't work normally


myonlake

Recommended Posts

Hello,

When I type this shutdown command, it just shut it downs and then restarting it.

function rotorsOn() 
    local vehicle = getPedOccupiedVehicle(getLocalPlayer()) 
    setHelicopterRotorSpeed(vehicle, 0.2) 
    setVehicleEngineState(vehicle, true) 
end 
addCommandHandler("rotorson", rotorsOn) 
  
function rotorsOff() 
    local vehicle = getPedOccupiedVehicle(getLocalPlayer()) 
    setHelicopterRotorSpeed(vehicle, 0) 
    setVehicleEngineState(vehicle, false) 
end 
addCommandHandler("rotorsoff", rotorsOff) 
 
Edited by myonlake
Link to comment

Like This :D

function rotorsOn() 
    local vehicle = getPedOccupiedVehicle(getLocalPlayer()) 
    setVehicleEngineState(vehicle, true) 
    setHelicopterRotorSpeed(vehicle, 0.2) 
end 
addCommandHandler("rotorson", rotorsOn) 
  
function rotorsOff() 
    local vehicle = getPedOccupiedVehicle(getLocalPlayer()) 
    setVehicleEngineState(vehicle, false) 
    setHelicopterRotorSpeed(vehicle, 0) 
end 
addCommandHandler("rotorsoff", rotorsOff) 

Link to comment

Thanks snake once again :P

Like This :D
function rotorsOn() 
    local vehicle = getPedOccupiedVehicle(getLocalPlayer()) 
    setVehicleEngineState(vehicle, true) 
    setHelicopterRotorSpeed(vehicle, 0.2) 
end 
addCommandHandler("rotorson", rotorsOn) 
  
function rotorsOff() 
    local vehicle = getPedOccupiedVehicle(getLocalPlayer()) 
    setVehicleEngineState(vehicle, false) 
    setHelicopterRotorSpeed(vehicle, 0) 
end 
addCommandHandler("rotorsoff", rotorsOff) 

That wouldn't help a cent.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...