Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vehicle repair problem #2386

Open
1 task done
MosIbOad opened this issue Dec 2, 2024 · 2 comments
Open
1 task done

vehicle repair problem #2386

MosIbOad opened this issue Dec 2, 2024 · 2 comments
Labels
Class: bug Something isn't working

Comments

@MosIbOad
Copy link

MosIbOad commented Dec 2, 2024

Description of the problem

If vehicle.repair is used at least 1 time for the vehicle to be repaired, even if the tires are flat and the doors are broken, when we change the dimension and go to the dimension of the vehicle again, the tires and doors are fixed and the vehicle is almost repaired again.
If vehicle.repair is never used, there is no problem.

Reproduction steps

I left a video below that explains the problem completely. At first I created the vehicle and punctured the tires. When I changed the dimension and came back, there was no problem because I did not use vehicle.repair. When I use vehicle.repair, even if the tires of the vehicle are punctured, when we move away from the vehicle and come back, the tires are fixed. This almost happens with other vehicle parts like doors and headlights.

https://streamable.com/wh33qs

Expected behaviour

.

Additional context

No response

Operating system

ubuntu 22.04

Version

16.2.26 (release)

Crashdump ID

No response

Confirmation of issue's presence

  • By submitting this ticket, I affirm that I have verified the presence of this issue on the latest RC (Release Candidate) version available at the time of writing this ticket.
@MosIbOad MosIbOad added the Class: bug Something isn't working label Dec 2, 2024
@BluePeer
Copy link

BluePeer commented Dec 2, 2024

thats "broken" since 10+ versions or so
#962 #1013 #1027 #1426 ...

@xxshady
Copy link
Contributor

xxshady commented Dec 8, 2024

yeah, consider re-creating vehicle but be aware of altmp/altv-js-module#289 (it's not related to JS module)

const newVehicle = new alt.Vehicle(...)

const appearance = oldVehicle.getAppearanceDataBase64()
newVehicle.setAppearanceDataBase64(appearance)

// defer deletion to avoid issue 289
oldVehicle.streamed = false // hide it from players
alt.setTimeout(() => {
    oldVehicle.destroy()
}, 10_000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants