Skip to content

Uncap Ped Health from 100 to any amount #4172

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

Open
1 task done
AlfredoAnonym opened this issue Apr 21, 2025 · 2 comments
Open
1 task done

Uncap Ped Health from 100 to any amount #4172

AlfredoAnonym opened this issue Apr 21, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@AlfredoAnonym
Copy link

Is your feature request related to a problem? Please describe.

Hello there!

I wanted to do my own iteration of Misterix script, that would work rather simple - you'd have missions to accept, and peds would spawn with sloth bot (or without it, if it would cause problems). Sloth bot works just fine, and everything else works. The problem is with the health. No matter what I do (or maybe I'm too inexperienced) and with the even help of an AI i can't seem to get rid of the 100 health cap

Can you possibly lift the Ped Health cap? Also I tried to change ped health in the editor and it also caps it to 100, and yes i can change it in the .map file but it still remains unchanged in game

Can you also explain, is this maybe my MTA version issue? Like map editor issue or something?

I will also send you the script to analyze it, I'd be thrilled to have an answer and if someone from the staff can help me overcoming this problem I'd be very happy!

(ps.: Tried to trick it, with showing Damage Taken and making the damage "fake" so it would reset the health every time, so the ped would be invincible, but in debug it would go down, and if it would reach 100 health, then it would stop resetting and the ped would be able to get killed)

https://www.mediafire.com/file/dn2o8ixurh85r9j/misterx2.zip/file

Describe the solution you'd like

  • Uncap the health to created peds (with or without slothbot) to a random amount. I tried to set 50000 for my script

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@AlfredoAnonym AlfredoAnonym added the enhancement New feature or request label Apr 21, 2025
@PlatinMTA
Copy link
Contributor

PlatinMTA commented Apr 22, 2025

You need to use your own health system if you want to do that, which I consider dumb. The main concern is because of cheating, but in my opinion we should be able to set any health via script without caps. Server developers already need to take into consideration absurd values that can't be used without cheats anyways.

If we end up adding this, please make it for every element that does have health (vehicle, peds, players...)

(ps.: Tried to trick it, with showing Damage Taken and making the damage "fake" so it would reset the health every time, so the ped would be invincible, but in debug it would go down, and if it would reach 100 health, then it would stop resetting and the ped would be able to get killed)

Try cancelling onClientPedDamage and onPedDamage btw.

@AlfredoAnonym
Copy link
Author

You need to use your own health system if you want to do that, which I consider dumb. The main concern is because of cheating, but in my opinion we should be able to set any health via script without caps. Server developers already need to take into consideration absurd values that can't be used without cheats anyways.

If we end up adding this, please make it for every element that does have health (vehicle, peds, players...)

(ps.: Tried to trick it, with showing Damage Taken and making the damage "fake" so it would reset the health every time, so the ped would be invincible, but in debug it would go down, and if it would reach 100 health, then it would stop resetting and the ped would be able to get killed)

Try cancelling onClientPedDamage and onPedDamage btw.

Thank you for your response! I tried that and I think didn't work. Basically in my script, there's 50 000hp set on a healthbar and it goes relatively fine, but when I try to kill the ped, it kills it with 100 so I don't think that would work. I think I tried onPedDamage and onClientPedDamage and results i got was either the same, or sometimes ped was invincible, so yeah.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants