Jump to content

Changing Katana's damage


Recommended Posts

I was trying to mess with setWeaponProperty and wanted to make the katana the weapon that does 1 hit 1 kill but appearantly didn't work :(

local rangeSet = setWeaponProperty (8, "pro", "damage", 10000 ) 
if (rangeSet) then 
    outputChatBox("Your katana damage is maximized") 
end 

Here's the script. The script works because I see the outputChatBox message but don't know why the damage isn't working

Link to comment

You don't need setWeaponProperty

addEventHandler("onPlayerDamage",root, 
function(attacker, weapon) 
     if weapon == 8 then  
          killPed(source,attacker,weapon) 
     end 
end) 

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...