How to modify Melee Damage

Can i ask what does this code suggest to?

Its an undocumented native for weapon damage modifier

so i can use it with any meelee wapon right?

yes yes

to see the effect or result of the damage you have to reset the server or only with reset script

Hey thanks a lot for this, i have a little question about it.
If i want to modify severals weapons should i go like this :

Citizen.CreateThread(function()
    while true do
	N_0x4757f00bc6323cfe(GetHashKey("WEAPON_UNARMED"), 0.5)
	N_0x4757f00bc6323cfe(GetHashKey("WEAPON_PISTOL50"), 0.2) 
	N_0x4757f00bc6323cfe(GetHashKey("WEAPON_MICROSMG"), 0.2) 
	Wait(0)
    end
end)

Will it work like this ?

Thanks :slight_smile:

1 Like

yep that’ll work

2 Likes

But that only reduce damage weapons not melee damage, is their something i didn’t get ?

It will work just fine, but for reading reasons, create a dictionary with the name of the weapons and the damage after, or just create a function and keep calling her every time you need it.

Thanks for your reply but i miss some skills to write this !
I going to try to compile some code from @BabbaTundaee with this

Sure, i have created i script that does exactly this, if you want, feel free to use it. It’s in my profile.

1 Like

You’re then men! Thank you ! :clap: I’ll try it today with my weapon list and add it to your post !

1 Like

I can use with all melee weapon except knife
can anyone help me?

N_0x4757f00bc6323cfe(GetHashKey(“WEAPON_KNIFE”), 0.2)
Wait(0)

is that right?
its still just one shot can kill.

Thank you for sharing. Is there anyway to modify headshot damage for weapons? or modify headshot damage for all weapons combined?

You can modify headshot damage by streaming a modified weapons.meta and changing the
<HeadShotDamageModifierPlayer value="3.000000" />

Thank you. Is there also anyway to disable spam punching?

not that I’m aware of, if you do find out let me know! I’m interested

1 Like

where to put this?

Thanks

In a meta file, duh.

I’m sorry if I triggered something from you, I asked because I don’t know if I already knew how to do that then I wouldn’t be asking here. You can also try not to be rude to people asking nicely. Anyway, already figured it out an hour later after I asked, but still, thank you for your response.

2 Likes