I get an error every time I add in this ak47:
if SERVER then
AddCSLuaFile( "shared.lua" )
end
if CLIENT then
SWEP.PrintName = "AK47"
SWEP.Slot = 2 -- add 1 to get the slot number key
SWEP.ViewModelFOV = 72
SWEP.ViewModelFlip = true
end
SWEP.CanBuy = {ROLE_INNOCENT, ROLE_DETECTIVE, ROLE_TRAITOR}
SWEP.Base = "weapon_tttbase"
SWEP.LimitedStock = false
SWEP.NoSights = false
SWEP.IsSilent = false
SWEP.AllowDelete = false
SWEP.AllowDrop = true
SWEP.HoldType = "ar2"
SWEP.Primary.Delay = 0.08
SWEP.Primary.Recoil = 1.9
SWEP.Primary.Automatic = true
SWEP.Primary.Damage = 13
SWEP.Primary.Cone = 0.025
SWEP.Primary.Ammo = "smg1"
SWEP.Primary.ClipSize = 30
SWEP.Primary.ClipMax = 60
SWEP.Primary.DefaultClip = 30
SWEP.Primary.Sound = Sound( "Weapon_AK47.Single" )
SWEP.IronSightsPos = Vector( 6.05, -5, 2.4 )
SWEP.IronSightsAng = Vector( 2.2, -0.1, 0 )
SWEP.ViewModel = "models/weapons/v_rif_ak47.mdl"
SWEP.WorldModel = "models/weapons/w_rif_ak47.mdl"
SWEP.Kind = WEAPON_HEAVY
SWEP.WeaponID = AMMO_AK47
SWEP.AutoSpawnable = true
SWEP.AmmoEnt = "item_ammo_smg1_ttt"
SWEP.InLoadoutFor = nil
SWEP.AllowDrop = true
SWEP.IsSilent = false
SWEP.NoSights = false
if CLIENT then
SWEP.EquipMenuData = {
type = "Weapon",
model="models/weapons/v_rif_ak47.mdl",
desc = "An AK47. Pew Pew."
};
SWEP.Icon = "vgui/ttt/icon_lks_ak47"
end
Help would be appreciated. When I add it the gun it works, but it error's out the Traitor's menu, making the menu blank.