Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MrDadosz opened this issue Oct 14, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@MrDadosz
Copy link

MrDadosz commented Oct 14, 2019

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 MrDadosz added the bug Something isn't working label Oct 14, 2019
@qaisjp
Copy link
Contributor

qaisjp commented Oct 15, 2019

Thanks for the bug report. By the way, you can use the following snippet when writing issues to syntax highlight your code:

```lua
your
    code
here
```

@MrDadosz
Copy link
Author

There's second problem about fixing it by script, maybe it's related. When you remove and add hydraulics and you have mounted nitro, bind for it won't work. You can see nitrous bottle, you can use hydraulics but you can't use nitro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants