Hey guy's I've recently added a bunch of guns to the pointshop on my ttt server and I've decided to try to make an option to buy ammo as well. I'm having some troubles though.
ITEM.Name = 'Rifle Ammo'
ITEM.Price = 25
ITEM.Model = 'models/items/357ammo.mdl'
ITEM.SingleUse = true
ITEM.AmmoType = "357"
ITEM.AmmoAmount = 10
function ITEM:OnBuy(ply)
ply:Give(self.AmmoType)
ply:SelectAmmo(self.AmmoType)
end
function ITEM:OnSell(ply)
ply:StripAmmo(self.AmmoType)
end
That's what I have so far. Any help would be much appreciated
You didn't even describe your issue.
It's not working. It's not showing up as an option in the pointsshop.