Open mcNuggets1 opened 7 months ago
This is not an issue, for similar questions, ask in the discord/forums
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.
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'?
(from https://forum.cfx.re/c/general-discussion/feature-requests/33, the feature request section, indeed)
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.
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.
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