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

Add a way to adjust the visual value of the health bar or armor bar or add an efficient way of disabling the display altogether #2352

Open
mcNuggets1 opened this issue Jan 20, 2024 · 5 comments
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action

Comments

@mcNuggets1
Copy link

What happened?

I wanna do my own health system, that overrides the fivem health system and also does it's own damage calculations etc.

In order to do that, I don't want to use SetPedHealth, as cheaters can easily manipulate this health value.
Also I wanna do all of this stuff for a medic system, I'm working on.

A feature for removing the HUD elements of the health or armor bar would be highly appreciated too.
I mean without disabling the radar.

Expected result

Reproduction steps

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer, Natives

Specific version(s)

FiveM

Additional information

No response

@mcNuggets1 mcNuggets1 added bug triage Needs a preliminary assessment to determine the urgency and required action labels Jan 20, 2024
@matehun00
Copy link

matehun00 commented Jan 20, 2024

This is not an issue, for similar questions, ask in the discord/forums

@mcNuggets1
Copy link
Author

This is not an issue, for similar questions, ask in the discord/forums

It's an issue to me.
Also feature requests are not as properly documented on a discord or a forum as in a list like this.

@blattersturm
Copy link
Contributor

It's an issue to me.

It being the case for you doesn't make this belong here.

Also, let me quote something someone said on the Discord in response to this post:

"How is this even a feature request?"

a) set ped invincible
b) make your own hp system, and kill ped if hp <= 0
b2) hook into any damage events using 'https://docs.fivem.net/docs/game-references/game-events/' (does CEventDamage trigger for invincible entities? hmm)
c) disable hp bar HUD components (glitchdetector has done so: https://github.com/glitchdetector/fivem-lite-transportation/blob/bfcea9465e82062915561498932770be1c7c44e2/resources/sessionmanager/scripts/dependencies/dep_minimap.lua#L80 where type 3 = no hp/armour bars)

Or something along those lines...

This already being possible therefore means it's not a work item either, and a log of work items (that GH calls 'issues') is also not the place to hold a discussion.

Also feature requests are not as properly documented on a discord or a forum as in a list like this.

... this is a list for work items, not feature requests. Also, while I agree with 'a discord' being a bad place for long-term information, how is a forum not 'a list like this'?

IMG_0550

(from https://forum.cfx.re/c/general-discussion/feature-requests/33, the feature request section, indeed)

@mcNuggets1
Copy link
Author

I did a few posts in the forums which were left unanswered, which left a bad taste in my mouth about.
Adding the possibility to request features via Github has no downsides at all and I don't get how it is not used.
I just know it from every other framework/engine/game I worked with. :/
Sorry for assuming.

Nows let's talk about the options, you proposed to help me aid in the issue.

A)
A would not work, because CEntityTakeDamage DOES NOT TRIGGER if the ped is invincible IN ANY WAY.
I tested it.

B)
I am working on this one RIGHT NOW.
But I wouldn't wanna work with killing, because I dislike the base death system.
But yeah, this would be a complete rework of a hp system only because of a simple change, I wanted to make :/

B2)
That's what I'm trying. I'm setting health for players to a random value.

C)
So sorry, I did research a LOT, but I didn't find anything. I'm bad in research myself, I only get bad results all the time.

Thanks for responding to my issue. I highly appreciate it.

@mcNuggets1
Copy link
Author

mcNuggets1 commented Feb 6, 2024

https://docs.fivem.net/natives/?_0x3F5CC444DCAAA8F2
https://docs.fivem.net/natives/?_0x975D66A0BC17064C

I found these, but I can't get them to work. My "green" healthbar is invisible now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

No branches or pull requests

3 participants