Hello Community,
I am using [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=194965598&searchtext=ttt+weapons+collection"]this[/URL] addon, to add more weapons to the t-shop on my servers and add more normal weapons like galil, aug etc.
Now I wanna remove the AK-47 from the t-shop and make it spawnable like every other weapon.
How can I do this?
Greetings
Tezou
Remove it from the traitor shop in the SWEP code.
Could you explain this a bit more detailed, please?
Are you using the workshop subscription or did you extract the files?
You'd need change two things inside the SWEP. Read the link above and download the AK47 template.
If you read through everything you'll have the answers to your questions.
Find this and remove it in the weapons .lua file:
[CODE]SWEP.CanBuy = {ROLE_TRAITOR} -- only traitors can buy
SWEP.LimitedStock = true -- only buyable once[/CODE]
Also did you extract the file or just use the WS content directly?
[QUOTE=Aeternal;44565314]Find this and remove it in the weapons .lua file:
[CODE]SWEP.CanBuy = {ROLE_TRAITOR} -- only traitors can buy
SWEP.LimitedStock = true -- only buyable once[/CODE]
Also did you extract the file or just use the WS content directly?[/QUOTE]
I removed that in "/garrysmod/addons/TTT Weapon Collection/gamemodes/terrortown/entities/weapons/weapon_ttt_ak47.lua"
Is that right?
I extracted the files.
That is right Tezou, restart your server and it should be fixed.
Remember to mark as "Solved" if it is fixed.
I didn't had the time to test it out, yet. When I did, I will edit this post later.
I always mark my solved threads as "Solved". No worries Brendon :P
Sorry, you need to Log In to post a reply to this thread.