citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.55k stars 2.09k forks source link

Version 3258 weaponDamageEvent hitComponent Bug #2848

Open zeuug opened 3 weeks ago

zeuug commented 3 weeks ago

What happened?

Using weaponDamageEvent to log damage data. In older game versions for example '2944' hitComponent works and returns its true values which is then converted to the bone name in the log.

On version 3258 hitComponent only returns 0 no matter what part of the body is damaged.

Expected result

Should be returning the correct hitComponent value like older versions.

Reproduction steps

Server side lua

AddEventHandler('weaponDamageEvent', function(source, data) if not data or not data.hitGlobalId then return end

print(data.hitComponent)

end)

Shoot another player, shoot different body parts and check server console for printed value.

Importancy

Slight inconvenience

Area(s)

FiveM

Specific version(s)

FiveM Game Build 3258

Additional information

No response

FabianTerhorst commented 3 weeks ago

Please specify your server artifact that you have tested.

zeuug commented 3 weeks ago

Please specify your server artifact that you have tested.

Server Artifact 9538

FabianTerhorst commented 2 days ago

Please try again on latest artifact. We had weapon damage event changes after 9538.