So i have 19 custom weapon files one of the lua scripts looks like this. the weapons show up in the pointshop menu but when i try to buy it, it looks like its working but it’s not in my inventory. PLz Help !!
ITEM.Name = 'Nailgun' ITEM.Price = 200 ITEM.Model = 'models/warz/melee/nailgun.mdl' ITEM.WeaponClass = 'weapon_nailgun' ITEM.SingleUse = true function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end
[editline]1st January 2014[/editline]
Also if someone could change this script around to make it so you only have to purchase the weapon once and you keep it forever.