Pointshop ttt weapons not working

So i am adding single use guns to _undefined’s pointshop

ITEM.Name = 'Aug'
ITEM.Price = 500
ITEM.Model = 'models/weapons/w_crowbar.mdl'
ITEM.WeaponClass = 'weapon_ttt_aug'
ITEM.SingleUse = true

function ITEM:OnBuy(ply)

function ITEM:OnSell(ply)

It does not give me the gun when i buy it, same for non single use

It is most likely because you already have a primary weapon.

If what he says is true, I suggest

  1. Checking to see if it gives it to you if you dont already have a primary weapon
  2. Put in a function under OnBuy that makes them drop their current weapon before receiving the AUG

Perhaps you could use Weapons.Get( “weapon_ttt_aug” ).Slot to get the slot, then loop around the players’ weapons with ply.GetWeapons(), checking them against the slot of the weapon, then drop them if necessary. Before actually giving them the weapon, obviously.

Fixed :stuck_out_tongue: Thanks

How do you fix this ?

Read the thread.