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

vehicle.setExtra repairs damages

Open mrgharabaghi opened this issue 1 year ago • 2 comments

Description of the problem

If you disable or enable an extra of a vehicle, your vehicle's damages will be gone. If this is RAGE's default behavior, it's a good idea to prevent that.

Reproduction steps

  1. Spawn a vehicle (police5).
  2. Drive straight into the wall and damage it.
  3. Remove a random extra (Server side).
player.vehicle.setExtra(0, false);

Expected behaviour

Vehicle damages should not be repaired.

Additional context

No response

Operating system

Windows 10

Version

dev/15.0-dev976

Crashdump ID

No response

Confirmation of issue's presence

  • [X] By submitting this ticket, I affirm that I have verified the presence of this issue on the latest developer version available at the time of writing this ticket.

mrgharabaghi avatar Dec 21 '23 06:12 mrgharabaghi

What is the equivalent for c#, could explain some weird vehicle godmodes in our server

lLukDreams avatar Jan 03 '24 22:01 lLukDreams

Still a major issue for us. On setExtra call complete vehicle gets repaired and even on old gta vehicles like elegy2 the collision gets crazy fucked up.

https://www.youtube.com/watch?v=xKs33cvbxeQ

Also we are facing issues if a vehicle with Extras is out of streaming range and restreamed again, the vehicle also repairs.

DrGrizzlY17 avatar May 07 '24 10:05 DrGrizzlY17