I think that i get it now,
if SERVER then
resource.AddFile("materials/VGUI/ttt/icon_myserver_ak47.vmt")
end
here it tells where file will be loaded for client and where it should be downloaded for client but for costum weapon it is:
if CLIENT then
SWEP.Icon = "VGUI/ttt/icon_myserver_ak47"
SWEP.EquipMenuData = {
type = "Weapon",
desc = "Example custom weapon."
};
end
so it knows where to read icon in server side? right?
I guess that code in script "SWEP.Icon = "VGUI/ttt/icon_myserver_ak47" isnt really needed if i make it "SWEP.AutoSpawnable = true" coz theres no use of icon if it auto spawns on map?
Is there also anyone with nice Lua knowlege so they can take a look at my scripts so i can ensure that they will work?