mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Hydraulics stops working when using setVehicleHandling with player inside vehicle

Open MrDadosz opened this issue 5 years ago • 3 comments

Describe the bug When you set maxVelocity with setVehicleHandling function and you're inside vehicle, you can't use it. Hydraulics is still mounted but vehicle behave like it has no hydraulics, you can honk instead of lifting a car.

To reproduce

  1. create vehicle with upgrade 1087
  2. try to use hydraulics [you can]
  3. run vehicle = getPedOccupiedVehicle(getPlayerFromName("MrDadosz")); setVehicleHandling(vehicle, "maxVelocity", 100)
  4. try to use hydraulics [you can't]

Version v1.5.7-release-20288

Additional context You can fix it with script:

if getVehicleUpgradeOnSlot(vehicle, 9) == 1087 then
	removeVehicleUpgrade(vehicle, 1087)
	addVehicleUpgrade(vehicle, 1087)
end

But it shouldn't happen.

MrDadosz avatar Oct 14 '19 23:10 MrDadosz