My weapon script is located at:
/orangebox/garrysmod/gamemodes/terrortown/entities/weapons/weapon_ttt_tmp
In my weapon script i have
if SERVER then
AddCSLuaFile( "shared.lua" )
resource.AddFile("materials/VGUI/ttt/icon_myserver_tmp.vmt")
end
if CLIENT then
SWEP.PrintName = "AK47"
SWEP.Slot = 2
SWEP.Icon = "VGUI/ttt/icon_mycoolwep_tmp"
end
i got my vmt file at:
/orangebox/garrysmod/gamemodes/terrortown/content/materials/vgui/ttt/icon_mycoolwep_tmp.vmt
which includes
"UnlitGeneric"
{
"$basetexture" "VGUI/ttt/icon_mycoolwep_tmp"
"$vertexcolor" 1
"$vertexalpha" 1
"$translucent" 1
}
i have added my vtf file which location is:
/orangebox/garrysmod/materials/vgui/ttt/icon_mycoolwep_tmp.vtf
i have imported it by using VTFEdit.
Server should read that weapon icon from that directory but it doesn't, in-game i see pink, black icons it seems that it wont load my icon...