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

Player's money not updating on HUD #397

Closed
WeirdPhrog opened this issue Apr 4, 2024 · 2 comments
Closed

Player's money not updating on HUD #397

WeirdPhrog opened this issue Apr 4, 2024 · 2 comments
Labels
untriaged New issue has not been triaged

Comments

@WeirdPhrog
Copy link

Hi, when I give a player some money during freeze time, the player doesn't see any changes on HUD until freeze time ends. Please help.

I tried Utilities.SetStateChanged(playerPawn!, "CCSPlayerController_InGameMoneyServices", "m_iAccount"); but nothing changed.

v 204

@github-actions github-actions bot added the untriaged New issue has not been triaged label Apr 4, 2024
@roflmuffin
Copy link
Owner

Do this instead, it needs to be done on the controller not the pawn, and the item to mark as state changed should be the whole reference to money services.

SetStateChanged(controller, "CCSPlayerController", "m_pInGameMoneyServices");

@WeirdPhrog
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

2 participants