TTT server Pointshop

Post Reply
xXSammiXx
New to forums
New to forums
Posts: 9
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Apr 22, 2013 8:48 am

TTT server Pointshop

Post by xXSammiXx »

I recently opened a TTT server and I am having issues with the pointshop. I have it in place but...
1) I can get the guns to show up under weapons tab but when they go to buy them, confirm yes, Nothing happens. how do i fix that?

2) Is there a simple way to add models to the pointshop? Only walkthru I have found is on Facepunch and I can't get an Invitation code.

Right now those are my main problems with the Point shop system. If it makes it easier I am using pointshopmaster files.
xXSammiXx
New to forums
New to forums
Posts: 9
Joined: Mon Apr 22, 2013 8:48 am

Re: TTT server Pointshop

Post by xXSammiXx »

So i figured out one part of it. But now when you open the shop it looks like a pulse rifle, Says AK, But when you buy it, It is an m16. What exactly have i done wrong here? I couldn't find a guide on how to do it so I have been trying stuff myself.


ITEM.Name = 'Ak47'
ITEM.Price = 20
ITEM.Model = 'models/weapons/w_irifle.mdl'
ITEM.WeaponClass = 'weapon_ar2'
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






This is my current code for it. Can someone talk me thru fixing it?
xXSammiXx
New to forums
New to forums
Posts: 9
Joined: Mon Apr 22, 2013 8:48 am

Re: TTT server Pointshop

Post by xXSammiXx »

Ok I fixed the picture by changing the model code. Now its just the fact it doesn't give you the AK. which im guessing is the weapon class. so How do i figure out the weapon class?
Post Reply