Skip to content

fix(handling-loader-five): handle m_acceleration and fAcceleration aliases#3913

Open
cduke0 wants to merge 1 commit into
citizenfx:masterfrom
cduke0:codex/handling-acceleration-alias
Open

fix(handling-loader-five): handle m_acceleration and fAcceleration aliases#3913
cduke0 wants to merge 1 commit into
citizenfx:masterfrom
cduke0:codex/handling-acceleration-alias

Conversation

@cduke0
Copy link
Copy Markdown

@cduke0 cduke0 commented Apr 9, 2026

Summary

  • add explicit m_acceleration and fAcceleration aliases for CHandlingData
  • read and write those aliases through the existing acceleration float at offset 0x4C
  • stop scanning parser members once an alias has already been handled

Why

m_acceleration and fAcceleration map to the same acceleration value in CHandlingData, but they are not exposed through the normal parser member lookup. As a result, handling getter/setter calls for those names fall through to No such field even though the backing field exists.

Impact

Scripts can now read and write acceleration using either alias without breaking the existing conversion logic in setFloatField and getFloatField.

Validation

  • git diff --check
  • verified the final one-file diff matches the requested patch

Notes

  • no full FiveM build was run in this environment

@github-actions github-actions Bot added the triage Needs a preliminary assessment to determine the urgency and required action label Apr 9, 2026
@cduke0 cduke0 changed the title [codex] Handle acceleration aliases in HandlingLoader Handle acceleration aliases in HandlingLoader Apr 9, 2026
@cduke0 cduke0 marked this pull request as ready for review April 9, 2026 13:07
@github-actions github-actions Bot added invalid Requires changes before it's considered valid and can be (re)triaged and removed triage Needs a preliminary assessment to determine the urgency and required action labels Apr 9, 2026
@cduke0 cduke0 changed the title Handle acceleration aliases in HandlingLoader tweak Handle acceleration aliases in HandlingLoader Apr 9, 2026
@cduke0 cduke0 changed the title tweak Handle acceleration aliases in HandlingLoader fix(handling-loader-five): handle m_acceleration and fAcceleration aliases Apr 9, 2026
@cduke0 cduke0 force-pushed the codex/handling-acceleration-alias branch from 0e77a31 to 4bba17a Compare April 9, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant