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

GetPlayerWeaponDamageModifier always returns 1 serverside #2748

Closed
mcNuggets1 opened this issue Aug 25, 2024 · 4 comments · Fixed by #2750
Closed

GetPlayerWeaponDamageModifier always returns 1 serverside #2748

mcNuggets1 opened this issue Aug 25, 2024 · 4 comments · Fixed by #2750
Labels

Comments

@mcNuggets1
Copy link

What happened?

I used SetPlayerWeaponDamage clientside to set the damage to 1.5.
GetPlayerWeaponDamage now correctly returns 1.5 on the clientside.

The server side tells me 1.0, when I call the native.
If I use an invalid player serversidely I get a 0.0, so it should be the synced value.

Expected result

Syncing happening (documentation is terrible too)

Reproduction steps

  1. SetPlayerWeaponDamageModifier(PlayerId(), 1.5)
  2. sv: print(GetPlayerWeaponDamageModifier(1) -- Or whatever the player id is you currently have

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer

Specific version(s)

FiveM newest version

Additional information

No response

@mcNuggets1 mcNuggets1 added bug triage Needs a preliminary assessment to determine the urgency and required action labels Aug 25, 2024
@Korioz
Copy link
Contributor

Korioz commented Aug 25, 2024

Please specify what game build you are using, this will help to repro this issue.

@mcNuggets1
Copy link
Author

mcNuggets1 commented Aug 25, 2024

b3095, I updated the artifact today a few minutes ago also im on windows.
Didn't include it, because I dont feel anyone's really reading or working on the issues I report.

@Korioz
Copy link
Contributor

Korioz commented Aug 25, 2024

Did you had this issue on older game build ?
I can confirm a desync with GetPlayerInvincible too on b3095 or greater, those two desyncs depends on CPlayerGameStateDataNode parser so it might need adjustment for this game build.

@mcNuggets1
Copy link
Author

I never worked with this until now.

@github-actions github-actions bot removed the triage Needs a preliminary assessment to determine the urgency and required action label Sep 17, 2024
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.

2 participants