TTT Weapon won't buy?

Hey, I tried adding a weapon that worked fine in sandbox to my TTT server (for fun lol) it was an old toybox weapon that was converted over to gmod 13. Anyways I modified the code to work with TTT (so I thought…) but it seems when I try to buy it in the shop nothing happens and the credit is not taken. :confused:
Here is the code (little big for one post):

If you happen to find anything that you think might be causing this please let me know!
Thank you.