Listing weapons?

Discussion in 'Rust Development' started by Rusty, Sep 4, 2015.

  1. Code:
    local weaponid1 = string.gsub(tostring(hitinfo.WeaponPrefab), ".weapon.prefab", "")
    This returns the weapon on a kill, for example "bow hunting" is a Hunting Bow, i have these in a table but it seems like Garry changes their name a lot, is a way to directly call the parsed weapon name instead of its prefab name? if not where can i find a list of these? (ItemList doesnt return these)

    Thanks
     
  2. Check out my Plugin Death Notes for that.