Jump to content

Setting weapon damage


TheCapn

Recommended Posts

Hello,

I'm facing an issue. I try to change the desert eagle damage, with this code

  
function setWeaponStat( player, command ) 
  setWeaponProperty(24, "poor", "damage", 100) 
  setWeaponProperty(24, "std", "damage", 100) 
  setWeaponProperty(24, "pro", "damage", 100) 
end 
addEventHandler( "onResourceStart", resourceRoot, setWeaponStat )  
  

And currently it's not working in-game, the damages aren't changed.

Do you know where the issue could come from ?

Regards,

Link to comment

In fact it's working now but I really don't know how the damage are working.

Because when I set at poor level the damage of the desert eagle to 70 (original damages), the ped only loose 23 hp ...

Do you know how the calculation is done ?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...