[Help] How to check if player got damaged?

Hey!

I want to check if a player receives damage upon an event.
Tried to use “HAS_ENTITY_BEEN_DAMAGED_BY_ANY_PED” and a few other natives without success.

Any guides or tips?

Thank you!

If that native function isn’t working properly, you could do some type of while loop and check https://runtime.fivem.net/doc/natives/#_0xEEF059FAD016D209

If curHealth < prevHealth then isDamaged = true