Jump to content

Modify Maverick speed


Angelo.

Recommended Posts

Hello,

I've been looking into setVehicleHandling() and what I'm trying to do is increase maverick speed but for some reason it won't change.
This is what I do:

 

funtion handlingTest()
  local me = getPlayerFromName("Angelo")
  local maverick = getPedOccupiedVehicle(me)
  setVehicleHandling(car, "maxVelocity", 500)
  setVehicleHandling(car, "engineAcceleration", 50)
end
addCommandHandler("yolo", handlingTest)

 

Before you ask the obviousl, this is just a test function and not an actual script, I run the command while being fully inside the maverick. It just wouldn't go over the speed of approx 140 kph
The command seems to have no effect.

Link to comment

Did you try to change drag? Also note that helicopters and boats use additional handling data, which is not editable with MTA functions, so if some "limits" are in that code...

Note: i'm not an handling expert and probably other more experienced people can give you further help with this.

Link to comment

try with only setting velocity and btw you used car instead of  maverick,and i think it is difficult to change helicopter config 

use Hedit to check. Link : https://community.multitheftauto.com/index.php?p=resources&s=details&id=3716

:

function handlingTest()
  local me = getPlayerFromName("Angelo")
  local maverick = getPedOccupiedVehicle(me)
  setVehicleHandling(maverick, "maxVelocity", 500)
  setVehicleHandling(maverick, "engineAcceleration", 50)
end
addCommandHandler("yolo", handlingTest)

 

Edited by Ayush Rathore
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...