• TTT tried to buy weapon his role is not permitted to buy
    1 replies, posted
currently not allowed to purchase TTT weapon from the shop. the code i have for the TTT config is --- TTT config values -- Kind specifies the category this weapon is in. Players can only carry one of -- each. Can be: WEAPON_... MELEE, PISTOL, HEAVY, NADE, CARRY, EQUIP1, EQUIP2 or ROLE. -- Matching SWEP.Slot values: 0      1       2     3      4      6       7        8 SWEP.Kind = WEAPON_EQUIP1 -- If AutoSpawnable is true and SWEP.Kind is not WEAPON_EQUIP1/2, then this gun can -- be spawned as a random weapon. Of course this AK is special equipment so it won't, -- but for the sake of example this is explicitly set to false anyway. SWEP.AutoSpawnable = false -- The AmmoEnt is the ammo entity that can be picked up when carrying this gun. SWEP.AmmoEnt = "" -- CanBuy is a table of ROLE_* entries like ROLE_TRAITOR and ROLE_DETECTIVE. If -- a role is in this table, those players can buy this. SWEP.CanBuy = { ROLE_TRAITOR } -- InLoadoutFor is a table of ROLE_* entries that specifies which roles should -- receive this weapon as soon as the round starts. In this case, none. SWEP.InLoadoutFor = nil -- If LimitedStock is true, you can only buy one per round. SWEP.LimitedStock = true -- If AllowDrop is false, players can't manually drop the gun with Q SWEP.AllowDrop = true -- If IsSilent is true, victims will not scream upon death. SWEP.IsSilent = false -- If NoSights is true, the weapon won't have ironsights SWEP.NoSights = true -- Equipment menu information is only needed on the client if CLIENT then    -- Path to the icon material    SWEP.Icon = "VGUI/ttt/anaicon"    -- Text shown in the equip menu    SWEP.EquipMenuData = {       type = "Weapon",       desc = "Rip through your enemies with a torrent of flame."       }; end -- Tell the server that it should download our icon to clients. if SERVER then    -- It's important to give your icon a unique name. GMod does NOT check for    -- file differences, it only looks at the name. This means that if you have    -- an icon_ak47, and another server also has one, then players might see the    -- other server's dumb icon. Avoid this by using a unique name.    resource.AddFile("materials/VGUI/ttt/anaicon.vmt")    end Is there a clash somewhere that is not allowing the SWEP to be bought it is inside the T shop but cannot be bought.
What do you mean "cannot be bought?" What does it say or do instead?
Sorry, you need to Log In to post a reply to this thread.