SWep compatible with NPCs

What must be defined in Swep to NPCs can use it properly?

list.Add( "NPCUsableWeapons", { class = "weapon_classname", title = "Gun Name" } )

whre i must put that?

You asked what must be defined in a SWEP for NPCs to use, you were given code with no instruction to put it anywhere else, so the very least you could do is throw it in your SWEP and test it yourself

It goes in an autorun file from what I found, not into a SWEP itself, yet I believe it can I believe as SWEPs are shared file