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

feat(extra-natives/five): read current & next gear from correct offsets #2154

Merged
merged 1 commit into from Aug 13, 2023

Conversation

jakub-cfx
Copy link
Contributor

Fix for issue reported on forums, memory offsets used by CurrentGear and NextGear natives turned out to be incorrect / were reporting unexpected results: https://forum.cfx.re/t/native-getvehiclecurrentgear-is-reading-from-the-wrong-address-in-memory/5159163

The variables these offsets get assigned to were swapped by mistake, this was discovered by comparing offsets calculated at runtime with a known good Manual Transmission mod which reports expected numbers (linked in forum thread)

Tested the variable swap under all currently supported builds, the resulting offsets now line up nicely with the mod

@blattersturm blattersturm merged commit b972aa2 into citizenfx:master Aug 13, 2023
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants