Swep code will not work in-game

Solved :smile:

"if ( SERVER ) then

Remove the "

Here too:

SWEP.AutoSwitchFrom = false"

Will do. Thanks!

SWEP.Base = "weaponcsbase"

Should be:

SWEP.Base = "weapon_cs_base"

[editline]4th August 2011[/editline]

And there’s another stray " here (4th line):


lol, thank you, the tutorial that i followed mustve been wrong xD Or maybe me O.O

You aren’t just putting shared.lua in there are you?

You need to have the file structure like this:

my folder name is “test”, so yeah, its correct.

[editline]4th August 2011[/editline]

I scrapped the other script and redid it completly, and it works perectly, ironsights and all!