fivem icon indicating copy to clipboard operation
fivem copied to clipboard

ApplyDamageToPed doesnt trigger CEventNetworkEntityDamage, CEventEntityDamaged OR entityDamaged

Open mcNuggets1 opened this issue 2 months ago • 2 comments

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

mcNuggets1 avatar Oct 23 '25 07:10 mcNuggets1

Please provide proper reproduction code. I do not see ApplyDamageToPed in your reproduction steps.

FabianTerhorst avatar Oct 23 '25 10:10 FabianTerhorst

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

mcNuggets1 avatar Nov 15 '25 09:11 mcNuggets1