Skip to content

Hydraulics stops working when using setVehicleHandling with player inside vehicle #1121

@MrDadosz

Description

@MrDadosz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions