Pointshop Entity Creation.

Yes hello i am just trying to make a pointshop addon that will spawn “ammo” for the players of my TTT server. I know its not needed but maybe someone will want it.


ITEM.Name = 'Rifle Ammo'
ITEM.Price = 200
ITEM.Model = 'models/items/357ammo.mdl'
ITEM.WeaponClass = 'item_ammo_357_ttt'
ITEM.SingleUse = true

function ITEM:OnBuy(ply)
local pos = ply:GetPos()
Ent = ents.Create(self.WeaponClass);
Ent:SetPos(pos + Vector(0,0,20))
end

function ITEM:OnSell(ply)
end