altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

IVehicleHandling setters with initial at front does not work

Open aydek opened this issue 4 years ago • 8 comments

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.

aydek avatar Nov 07 '20 14:11 aydek

    veh.handling.initialDragCoeff = 500;
    veh.handling.initialDriveForce = 500;
    veh.handling.initialDriveGears = 30;

this works for me

martonp96 avatar Dec 06 '20 02:12 martonp96

Don't know how it works for you but on current version I'm getting 0 effect with same code.

aydek avatar Mar 09 '21 21:03 aydek

Related to https://github.com/altmp/altv-issues/issues/681

The snippet marton provided doesn't work on latest dev.

yoranjj avatar Apr 30 '21 14:04 yoranjj

any news on this?

b2soft avatar Jun 24 '21 14:06 b2soft

branch 5.3 release, without respawn of vehicle inital* setters don't work.

gotgameio avatar Jul 24 '21 17:07 gotgameio

still not working

Revyn112 avatar Feb 13 '22 14:02 Revyn112

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.

amazur31 avatar Mar 23 '24 23:03 amazur31

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)

TrashaPanda avatar Jul 04 '24 16:07 TrashaPanda