TTT and pointshop

I am using a pointshop (by _Undefined http://pointshop.burt0n.net/) on my TTT server. I am a bit confused on why my weapons aren’t working. They are in the pointshop and buyable, but when I buy the gun I don’t get it. Here is my code for the pointshop:



ITEM.Name = 'weapon_ttt_awesomesilencedsniper'
ITEM.Price = 1000
ITEM.Model = 'models/weapons/w_snip_g3sg1.mdl'
ITEM.WeaponClass = 'weapon_ttt_awesomesilencedsniper'
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


Did you drop your current weapon before the new one.

I have dropped all my weapons and tried. I do not recieve the weapon still.

The code should work just fine. Not enough information provided, I’d suggest you to look into the weapon shared.lua.
(Also, if you’re testing in SP - make sure to choose TTT gamemode and not sandbox)


ITEM.Name = 'G3SG1'
ITEM.Price = 7
ITEM.Model = 'models/weapons/w_snip_g3sg1.mdl'
ITEM.WeaponClass = 'weapon_ttt_g3sg1'
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

Works for me.

I am testing it in the server. All I did for the shared.lua was take the Silenced Sniper (which is a working traitor weapon) and changed the damage on it to 200 so it is a one shot kill. Then I changed the name of it in the shared.lua and the name of the folder to weapon_ttt_awesomesilencedsniper