Jump to content

Changing Katana's damage


Recommended Posts

Posted

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

Posted

You don't need setWeaponProperty

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

  • Moderators
Posted

Note:

Weapon property only works for these weapons, see wikimta.

https://wiki.multitheftauto.com/wiki/SetWeaponProperty

grenade

teargas

molotov

pistol

silenced_pistol

desert_eagle

shotgun

sawnoff_shotgun

spas12_shotgun

uzi

mp5

ak47

m4

tec9

rifle

sniper_rifle

rocket_launcher

rocket_launcher_hs

flamethrower

minigun

satchel

detonator

spraycan

extinguisher

camera

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