-
Notifications
You must be signed in to change notification settings - Fork 2k
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
SetHealthHudDisplayValues does nothing or corrupts the health bar #2539
Comments
I believe you may alternatively directly call functions on the minimap scaleform to achieve something similar, e.g. SET_PLAYER_HEALTH: https://vespura.com/fivem/scaleform/#MINIMAP |
This native looks like some kind of override as I tried taking damage after using the native, and my HP stayed the same under the minimap. After testing, it looks like it just makes the health bar red if the first argument is not -1. And makes the health bar green again after passing -1 as the first argument. |
This native is for overriding visual health on the healtbar apparently, it doesn't really do that however. And yeah the only function it has, is to seemingly bug out the healthbar. |
Yeah I first wrote what the native was "supposed" to do hahah |
function UpdateHealthbar(minimapScaleform)
end I did follow your advice and finally got dis stuff working. |
What happened?
There is no real documentation of SetHealthHudDisplayValues.
I found two seperate ways of using it. None of it works.
SetHealthHudDisplayValues(100, 100, false)
Does nothing.
Tried this: SetMaxHealthHudDisplay(1000)
Des nothing.
Tried with floats, instead of numbers, that just made the bar go invisible.
The only documentation I found told me, that the native only needs to be called once and then needs to be undone with setting health to -1.
None of that besides resetting health to -1 works.
Expected result
It would change the value to the specified
Reproduction steps
SetHealthHudDisplayValues(40, 100, false)
Importancy
Unknown
Area(s)
FiveM, FXServer, FxDK, OneSync, Natives
Specific version(s)
FiveM b3095
Additional information
No response
The text was updated successfully, but these errors were encountered: