altv-issues
altv-issues copied to clipboard
IVehicleHandling setters with initial at front does not work
Client/server version
Build #2.1-dev7, branch dev
Current behavior IVehicleHandling setters that starts with initial doesn't work
Expected behavior Should work
Steps to reproduce
alt.on('gameEntityCreate', (entity: alt.Entity) => {
if (entity instanceof alt.Vehicle) {
//Does not work
entity.handling.initialDragCoeff = 5;
entity.handling.initialDriveForce = 5;
entity.handling.initialDriveGears = 3;
//Works fine
entity.handling.tractionCurveMax = 5;
entity.handling.tractionCurveMin = 5;
}
});
Context (environment) Trying to change vehicle handling.
veh.handling.initialDragCoeff = 500;
veh.handling.initialDriveForce = 500;
veh.handling.initialDriveGears = 30;
this works for me
Don't know how it works for you but on current version I'm getting 0 effect with same code.
Related to https://github.com/altmp/altv-issues/issues/681
The snippet marton provided doesn't work on latest dev.
any news on this?
branch 5.3 release, without respawn of vehicle inital* setters don't work.
still not working
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.
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.
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)