SWEP Uploading problems.

Alright, for some reason my SWEP won’t show up in the Weapons Menu when I upload it. The code isn’t broken, I tested it in lua/weapons but for some reason when I try uploading, it’s successful, gets put in the addons folder, but doesn’t show up in the Weapons Menu. Any thoughts?

wha who whot what
i can’t even understand what you’re saying here

Alright, for some reason my SWEP won’t show up in the Weapons Menu when I upload it.

Took one sentence…
Anyway, I upload a SWEP, and when I subscribe to it, it doesn’t show up.

Bump, still having problems. :frowning:

Let’s see the code for it, using


 tags

AddCSLuaFile()

//General Settings \\
SWEP.AdminSpawnable = true
SWEP.ViewModelFOV = 64
SWEP.ViewModel = "models/weapons/v_357.mdl"
SWEP.WorldModel = "models/weapons/w_357.mdl"
SWEP.AutoSwitchTo = true
SWEP.Slot = 1
SWEP.HoldType = "Pistol"
SWEP.PrintName = "Rectum Wrecker"
SWEP.Author = "Sir Fabulous"
SWEP.Spawnable = true
SWEP.AutoSwitchFrom = false
SWEP.FiresUnderwater = true
SWEP.Weight = 5
SWEP.DrawCrosshair = true
SWEP.Category = "Sir Fabulous's SWEPS"
SWEP.SlotPos = 1
SWEP.DrawAmmo = true
SWEP.ReloadSound = "Weapon_357.Reload"
SWEP.Instructions = "Both buttons? Duh?"
SWEP.Contact = "Find a bug? Put it on the Workshop Page."
SWEP.Purpose = "Kill shit."
SWEP.base = "weapon_base"
//General settings\\

//PrimaryFire Settings\\
SWEP.Primary.Sound = "Weapon_357.Single"
SWEP.Primary.Damage = 777
SWEP.Primary.TakeAmmo = -7
SWEP.Primary.ClipSize = 77
SWEP.Primary.Ammo = "Pistol"
SWEP.Primary.DefaultClip = 777
SWEP.Primary.Spread = 0.1
SWEP.Primary.NumberofShots = 7
SWEP.Primary.Automatic = true
SWEP.Primary.Recoil = 0
SWEP.Primary.Delay = 0.1
SWEP.Primary.Force = 100
//PrimaryFire settings\\

//Secondary Fire Variables\\
SWEP.Secondary.NumberofShots = 1
SWEP.Secondary.Force = 10
SWEP.Secondary.Spread = 0.1
SWEP.Secondary.Sound = "Weapon_RPG.Single"
SWEP.Secondary.DefaultClip = 7777777
SWEP.Secondary.Automatic = true
SWEP.Secondary.Ammo = "Pistol"
SWEP.Secondary.Recoil = 0
SWEP.Secondary.Delay = 0.1
SWEP.Secondary.TakeAmmo = -7
SWEP.Secondary.ClipSize = 77
SWEP.Secondary.Damage = 777
SWEP.Secondary.Magnitude = "175"
//Secondary Fire Variables\\

//SWEP:Initialize()\\
function SWEP:Initialize()
	util.PrecacheSound(self.Primary.Sound)
	util.PrecacheSound(self.Secondary.Sound)
	if ( SERVER ) then
		self:SetWeaponHoldType( self.HoldType )
	end
end
//SWEP:Initialize()\\

//SWEP:PrimaryFire()\\
function SWEP:PrimaryAttack()
	if ( !self:CanPrimaryAttack() ) then return end
	local bullet = {}
		bullet.Num = self.Primary.NumberofShots
		bullet.Src = self.Owner:GetShootPos()
		bullet.Dir = self.Owner:GetAimVector()
		bullet.Spread = Vector( self.Primary.Spread * 0.1 , self.Primary.Spread * 0.1, 0)
		bullet.Tracer = 0
		bullet.Force = self.Primary.Force
		bullet.Damage = self.Primary.Damage
		bullet.AmmoType = self.Primary.Ammo
	local rnda = self.Primary.Recoil * -1
	local rndb = self.Primary.Recoil * math.random(-1, 1)
	self:ShootEffects()
	self.Owner:FireBullets( bullet )
	self.Weapon:EmitSound(Sound(self.Primary.Sound))
	self.Owner:ViewPunch( Angle( rnda,rndb,rnda ) )
	self:TakePrimaryAmmo(self.Primary.TakeAmmo)
	self.Weapon:SetNextPrimaryFire( CurTime() + self.Primary.Delay )
	self.Weapon:SetNextSecondaryFire( CurTime() + self.Primary.Delay )
end
//SWEP:PrimaryFire()\\

//SWEP:SecondaryFire()\\
function SWEP:SecondaryAttack()
	if ( !self:CanSecondaryAttack() ) then return end
	local rnda = -self.Secondary.Recoil
	local rndb = self.Secondary.Recoil * math.random(-1, 1)
	self.Owner:ViewPunch( Angle( rnda,rndb,rnda ) )
	local eyetrace = self.Owner:GetEyeTrace()
	self.Weapon:EmitSound ( self.Secondary.Sound )
	self:ShootEffects()
	local explode = ents.Create("env_explosion")
	explode:SetPos( eyetrace.HitPos )
	explode:SetOwner( self.Owner )
	explode:Spawn()
	explode:SetKeyValue("iMagnitude","175")
	explode:Fire("Explode", 0, 0 )
	explode:EmitSound("weapon_AWP.Single", 400, 400 )
	self.Weapon:SetNextPrimaryFire( CurTime() + self.Secondary.Delay )
	self.Weapon:SetNextSecondaryFire( CurTime() + self.Secondary.Delay )
	self:TakePrimaryAmmo(self.Secondary.TakeAmmo)
end
//SWEP:SecondaryFire()\\


Like I said, it works fine, just doesn’t show up when you Subscribe to it.

Bump, still having problems with this.

Bump.

Fixed it on my own guys, thanks for nothing.