• Pointsshop new category help
    7 replies, posted
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.
You created a category for it, correct?
Yes sir.
Does the category display?
Yeah but nothing in it
[CODE]ITEM.Name = '<span class="highlight">Ammo</span>' ITEM.Price = 200 ITEM.Model = 'models/items/357ammo.mdl' ITEM.WeaponClass = 'item_ammo_revolver_ttt' ITEM.SingleUse = true function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) end[/CODE]
Sorry, you need to Log In to post a reply to this thread.