My dumb ass managed to single-handedly revive Facepunch forums with my retarded questions.
attempt to index global ‘surface’ (a nil value)
SWEP.WepSelectIcon = surface.GetTextureID(“vgui/entities/pew-gun”)
After that I have SWEP.Initialize and all that other junk.
I see this works on other SWEP’s but it simply doesent on mine, the spawn icon shows up, but it doesen’t allow me to spawn the gun, other guns work perfectly fine.
SWEP print name is “Pew gun” if that has to do with anything.
I have another SWEP with the same material under a diffrent name, if that means anything. ( seperate addon)