ApplyDamageToPed doesnt trigger CEventNetworkEntityDamage, CEventEntityDamaged OR entityDamaged
What happened?
The player can be set to death state this way. Again making custom death system a cancer to program,
Expected result
That the event is called
Reproduction steps
AddEventHandler("entityDamaged", function(victim, attacker, weapon, baseDamage) print(victim, attacker, weapon, baseDamage) end)
AddEventHandler("gameEventTriggered", function(name, args) if name ~= "CEventEntityDamaged" then return end ESX.PrintTable(name, args) end)
Importancy
Slight inconvenience
Area(s)
FXServer, FiveM
Specific version(s)
Newest
Additional information
No response
Please provide proper reproduction code. I do not see ApplyDamageToPed in your reproduction steps.
Just call ApplyDamageToPed(PlayerPedId(), 10) and watch the event. Fr I did provide everything but the function. I would do much more work for you in investigating and providng shit if anyone would take their time to actually adress shit, but that aint gonna happen around here anyways lmao