fivem
fivem copied to clipboard
fix(onesync): CPlayerGameStateDataNode for b3095
Goal of this PR
Fix some server-side natives that return invalid values on game build >= 3095 like:
GET_PLAYER_INVINCIBLE
GET_PLAYER_WEAPON_DAMAGE_MODIFIER
GET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER
How is this PR achieving the goal
Adding a missing bit reading operation on CPlayerGameStateDataNode for >= b3095
This PR applies to the following area(s)
Server
Successfully tested on
Game builds: 2944, 3095, 3258
Platforms: Windows
Checklist
- [x] Code compiles and has been tested successfully.
- [x] Code explains itself well and/or is documented.
- [x] My commit message explains what the changes do and what they are for.
- [x] No extra compilation warnings are added by these changes.
Fixes issues
Fixes #2748
Are you sure it's the only one in 3095? After unk101, I see two int (8 bytes each)
Maybe it's on 3258 and not 3095
Maybe it's on 3258 and not 3095
Good catch
Thanks for your contribution.
Maybe it's on 3258 and not 3095