mtasa-blue
mtasa-blue copied to clipboard
Hydraulics stops working when using setVehicleHandling with player inside vehicle
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
- create vehicle with upgrade 1087
- try to use hydraulics [you can]
- run vehicle = getPedOccupiedVehicle(getPlayerFromName("MrDadosz")); setVehicleHandling(vehicle, "maxVelocity", 100)
- 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.