SetVehicleExtra() causing weird behaviours

The SetVehicleExtra() native when spammed on and off like any ELS resource does it causes weird behaviours with all sorts of vehicle damage: body damage, wheels, windows.

It only seems to happen when there is more than one person. As you see in the video below whenever extras are being toggled all kinds of damage are being repaired. But when the extras no longer are constantly being toggled on & off then the vehicle damage will finally appear.

We were told this wasn’t a bug, but a R* behaviour. We’re already using that SetVehicleAutoRepairDisabled() native but it doesn’t help this situation.

To reproduce this “issue” simply have two players loaded, spam SetVehicleExtra() on one client (entity owner I hope) on a vehicle handle and try shooting the vehicle.

4 Likes

Accually we just found out it’s previously reported as a ‘bug’, but the same behaviour we want gonish Unexpected behaviour of SetVehicleAutoRepairDisabled with SetVehicleExtra - FiveM Discussion / Bug reports - Cfx.re Community

Dump?

Bump. Every other server has this issue.

The only thing we could do is, get engine health before the extra was applied and then apply damage again after the extra is applied. Tacky solution.

But the visual damage stays as it is. Someone should really fix this years old bug which is kind of un-realistic and misused by everyone.

If you understand what ‘this issue’ is, instead of ‘bumping’ how about you actually provide actual info as to what the ‘issue’ is in the first place?

I’m experiencing issues now with Extras not being applied properly.

This just started happening within the past few days.

It will remove the extras properly, but when applying the extras back it does not apply them. BUT if you do SetVehicleFixed(vehicle) after the extras have been applied it applies the vehicle extras at that point.

The vehicle wasn’t damaged when applying/removing the extras.

If SetVehicleFixed is not called after the extras are applied, it will not append them to the vehicle.

What is odd though is if you don’t do SetVehicleFixed, and you call IsVehicleExtraTurnedOn on the proper vehicle extra, it does indeed think it is enabled, even though it is not displaying the extra.

Additional info: I’m running Canary and server build 4355 on tuner dlc level.

Bump bump bump

The feature requests section is not for ‘bumping’ stuff, nor is it for vague requests about ‘issues’ without saying what you want nor not reading when someone’s asking for details.