-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(natives/vehicle): implement getter/setter for vehicle flags #2780
base: master
Are you sure you want to change the base?
Conversation
Hey @ahcenezdh, |
Hey, the problem with flagIndex is that if R* adds new flags, then the flagIndex should be updated since the value is hardcoded, in the old PR Disquse mentionned a way to get the number of flags directly from rage parser |
Then i think its fine to cast it to |
Should be good, tell me if something is not, i just need to re test everything to see if there is no problems |
Looks good to me |
876d881
to
9d18b3c
Compare
114823d
to
5ca7213
Compare
Goal of this PR
Implement natives to set and get vehicle flags. This is the PR of @kams3 with the addition of the setter.
How is this PR achieving the goal
By reading the specific offset in this signature: 48 85 C0 74 3C 8B 80 ? ? ? ? C1 E8 0F, which exposes vehicle flags on the vehicle.
This rely on citizenfx/fivem-docs#480
This PR applies to the following area(s)
FiveM
Successfully tested on
Game builds: 3095
Platforms: Windows
Checklist
Fixes issues