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

null vehicle handling values leads to physics freeze #3097

Closed
CeebDev opened this issue Jan 25, 2025 · 1 comment · Fixed by #3101
Closed

null vehicle handling values leads to physics freeze #3097

CeebDev opened this issue Jan 25, 2025 · 1 comment · Fixed by #3101
Labels

Comments

@CeebDev
Copy link

CeebDev commented Jan 25, 2025

What happened?

OUTDATED See #3097 (comment)
Since at least b3258, going in certains slopes areas in a vehicle will cause physics state freeze.

The vehicle can't be unblocked, even if you fix it or going away with noclip

This is a video of what's happening

2025-01-25_03-27-27.mp4

Expected result

Vehicle should not lose physics

Reproduction steps

SetVehicleHandlingFloat(veh, "CHandlingData", "fTractionCurveMin", null);
SetVehicleHandlingFloat(veh, "CHandlingData", "fTractionCurveMax", null);
SetVehicleHandlingFloat(veh, "CHandlingData", "fLowSpeedTractionLossMult", null);
  • Try to drift to activate vehicle physics

Importancy

Slight inconvenience

Area(s)

FiveM

Specific version(s)

tested on b3258 and b3407

Additional information

No response

@CeebDev CeebDev added bug triage Needs a preliminary assessment to determine the urgency and required action labels Jan 25, 2025
@CeebDev
Copy link
Author

CeebDev commented Jan 25, 2025

After investigation, this was due to a change on our codebase.

For a unknown reason, some data for the handling change (offroad script) was received as null.

So this is another problem:

fTractionCurveMin / fTractionCurveMax / fLowSpeedTractionLossMult can be set to null without any errors.

Setting these values to null will result in what you see in the video when the physics need one of those.

@CeebDev CeebDev changed the title vehicle physics freeze null vehicle handling values leads to physics freeze Jan 25, 2025
@github-actions github-actions bot removed the triage Needs a preliminary assessment to determine the urgency and required action label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant