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

Handling API driveMaxFlatVel is partially broken #1606

Closed
xxshady opened this issue Aug 11, 2022 · 4 comments
Closed

Handling API driveMaxFlatVel is partially broken #1606

xxshady opened this issue Aug 11, 2022 · 4 comments
Labels
Class: bug Something isn't working Side: client Client-side issues Status: confirmed This issue existence was confirmed using provided reproduction steps

Comments

@xxshady
Copy link
Contributor

xxshady commented Aug 11, 2022

Description of the problem

If you try to set set driveMaxFlatVel on any vehicle instance e.g. to 1000 nothing changes visually. However, alt.HandlingData works.

Reproduction steps

  • Set player into manana car
  • alt.Player.local.handling.driveMaxFlatVel = 1000
  • Nothing changed, even after restream vehicle

alt.HandlingData:

  • alt.HandlingData.getForHandlingName(alt.hash('manana')).driveMaxFlatVel = 1000
  • Restream vehicle
  • Works

Expected behaviour

Per vehicle instance Handling API should work i guess

Additional context

No response

Operating system

Windows 11

Version

13.0-dev9

@xxshady xxshady added the Class: bug Something isn't working label Aug 11, 2022
@deluvas1911 deluvas1911 added Side: client Client-side issues Status: confirmed This issue existence was confirmed using provided reproduction steps labels Aug 18, 2022
@deluvas1911
Copy link
Contributor

Confirmed using dev10

@amazur31
Copy link

amazur31 commented Mar 23, 2024

Bump.
This is a really big issue for us. We can't develop any custom handlings for default cars due to this and related issues. Any streaming or Handling API calls don't work correctly on AltV.
@DurtyFree recommended us to push this issue.

@TrashaPanda
Copy link

Alt.Natives.ModifyVehicleTopSpeed(vehicle, 1); <--- add this after all your handling adjustments.

profit.

have a nice day.

https://discord.com/channels/371265202378899476/576771706119520287/1258460157927755899 proofs (assuming ur in AltV disco)

@mrgharabaghi
Copy link
Contributor

@xxshady

As TrashaPanda said, by calling alt.Player.local.vehicle.setupTransmission() or native.modifyVehicleTopSpeed(vehicle.scriptID, 1) after driveMaxFlatVel, the value of driveMaxFlatVel will affected on vehicle.

Using native.modifyVehicleTopSpeed is a common way on FiveM. Take a look at this.

I think it's a good time to close this issue.

alt.Player.local.vehicle.handling.initialDriveMaxFlatVel = 1000;
alt.Player.local.vehicle.setupTransmission();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: bug Something isn't working Side: client Client-side issues Status: confirmed This issue existence was confirmed using provided reproduction steps
Projects
None yet
Development

No branches or pull requests

6 participants