altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

Serverside ToggleExtra reduces vehicle velocity to zero #2258

Open Avepy opened 3 months ago

Avepy commented 3 months ago

Description of the problem

When toggling extra for the vehicle serverside C#, vehicle got its velocity reduced to zero when in motion

Reproduction steps

IVehicle.ToggleExtra(extraId, value)

Expected behaviour

Vehicle should maintain its velocity

Additional context

No response

Operating system

Windows 11

Version

release/16.0.143

Crashdump ID

No response

Confirmation of issue's presence

litolax commented 3 months ago

Reproduced with

alt.setTimeout(() => {
    player.vehicle.setExtra(1, true);
}, 5000)

https://github.com/altmp/altv-issues/assets/60060712/42a6fc40-5a45-462a-95b3-c7d735fe3eba