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

resetVehicleComponentPosition has issues with modded vehicles #3142

Open
1 task done
MrSol0 opened this issue Aug 4, 2023 · 1 comment
Open
1 task done

resetVehicleComponentPosition has issues with modded vehicles #3142

MrSol0 opened this issue Aug 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@MrSol0
Copy link

MrSol0 commented Aug 4, 2023

Describe the bug

Simply put, resetVehicleComponentPosition changes the component positions to the original GTA model when the vehicle is streamed in ( if the upgrade was added to the vehicle before getting replaced with a mod), while if used for a streamed out vehicle it works fine and resets components to the modded model's original component position.
So i discovered this bug with resetVehicleComponentPosition after trying to make a tuneable truck, which requires me to use setComponentPosition to make the wheel upgrades work with this mod ( normal wheels are much wider and double, while upgrade wheels are tighter therefore i had to modify wheels component position (wheel_lf_dummy,wheel_lb_dummy,wheel_rb_dummy,wheel_rf_dummy) it more in ).

Steps to reproduce

1- Add a wheel upgrade to the truck before you load a mod on it, so with the default GTA model, , i'm using Linerunner
2- Replace the vehicle with the wheel upgrade with a mod using engineLoadDFF, engineReplaceModel
2- While the vehicle is streamedIn use resetVehicleComponentPosition to reset components such as wheel_lf_dummy,wheel_lb_dummy.
3- You will notice that the wheels has moved to the front like in this image. this is the issue
https://i.ibb.co/tYMYwkW/Capture.png

NOTE: if you use resetVehicleComponentPosition with onClientElementStreamOut it will reset the wheel position to where it should be ( meaning the actual mod's component positions )

Version

No response

Additional context

No response

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@MrSol0 MrSol0 added the bug Something isn't working label Aug 4, 2023
@FileEX
Copy link
Contributor

FileEX commented Aug 4, 2023

Try with engineRestreamWorld function after loaded new model

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

No branches or pull requests

2 participants