Jump to content

[HELP] Rhino and Aircraft Handling


Recommended Posts

Hello there,

Recently I've been trying to change the handling of the rhino and beagle using setVehicleHandling.

The problem is very simple, it doesn't work. When I change the vehicle ID to a regular car (infernus, banshee or what have you) it works perfectly

Is it not possible to change the handling of aircraft and the rhino? or is there some other way to change it?

For now I just want to alter the accelation and top speed of the vehicle (I took the script from the mta wikia)

function vhandling ( )
   for _,v in pairs(getElementsByType("vehicle")) do
      if getElementModel(v) == 432 then -- Rhino ID, any regular car ID works, rhino doesn't
        setVehicleHandling(v, "maxVelocity", 30000.0)
        setVehicleHandling(v, "engineAcceleration", 30000.0)
      end
   end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), vhandling )

Thanks in advance!

Edited by Noah_Antilles
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...