Angelo. Posted February 25, 2017 Share Posted February 25, 2017 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
LoPollo Posted February 25, 2017 Share Posted February 25, 2017 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
Ayush Rathore Posted February 26, 2017 Share Posted February 26, 2017 (edited) 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 February 26, 2017 by Ayush Rathore Link to comment
Angelo. Posted February 26, 2017 Author Share Posted February 26, 2017 Yhea I changed car to maverick at the last second before posting and forgot to change the other ones, but that's not the problem. Will check that link and get back on you. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now