There's nothing wrong with this swep right?

I hope this forum has bb code,

if SERVER then

	SWEP.HoldType	= "ar2"


if CLIENT then

	SWEP.Weight				= 5
	SWEP.AutoSwitchTo		= true
	SWEP.AutoSwitchFrom		= false
	SWEP.ViewModelFOV	= 78
	SWEP.ViewModelFlip			= false


SWEP.Base	= "something_base"
SWEP.Category	="Souslayerzx"

SWEP.PrintName		= "Famas (Combat)"	
SWEP.Author			= "Soulslayerzx"
SWEP.Instructions	= "Get a quick shot at them."
SWEP.Purpose		= "To be a good fighter."
SWEP.DrawCrosshair = true 

SWEP.Spawnable			= true
SWEP.AdminSpawnable		= true

SWEP.Primary.Sound	= Sound("weapons/famas/famas_1.wav")
SWEP.Primary.Recoil			= 0.3
SWEP.Primary.Damage			= 15
SWEP.Primary.NumShots		= 1
SWEP.Primary.Cone			= 0.02
SWEP.Primary.ClipSize		= 50
SWEP.Primary.Delay			= 0.05
SWEP.Primary.DefaultClip	= 100
SWEP.Primary.Automatic		= true
SWEP.Primary.Ammo			= "smg1"
SWEP.ReloadOnEmpty = true
SWEP.ReloadSound = "Sound("weapons/famas/clipin.wav")"
SWEP.FiresUnderwater 		= true 

SWEP.ViewModel			= "models/weapons/v_rif_famas.mdl"
SWEP.WorldModel			= "models/weapons/w_rif_famas.mdl"

SWEP.Secondary.Automatic	= false
SWEP.Secondary.Ammo		= "none"


I’m gonna make it have a scope. So yea… Other than, the secondary. I don’t see why the swep doesn’t appear a shit pixel in the game.

I see 3 errors.

SWEP.HoldType = “ar2” should be shared, not in an if SERVER block.

SWEP.Base = “something_base” should be a base that exists.

And there’s an extra end at the end of the file.

The 2 last errors you could’ve detected by looking at your console when the map loads. Look all the way up it until you find lua errors related to your weapon. That’s when the game tried to load it and failed.

Use [lua] tags aswell next time :smiley: