TTT Weapon Icon Purple/Black

To start with…
> They are downloading correctly when necessary.
> The paths in the swep files are correct
> The paths in which the files are meant to be located as they are shown in the example page of this website.
> The VTF and VMT files are setup correctly.

If anyone has any suggestions why they aren’t working, please reply?

Here is my VMT file :

 "$basetexture" "VGUI/ttt/icon_lks_healthkit"
 "$vertexcolor" 1
 "$vertexalpha" 1
 "$translucent" 1

and my shared.lua

SWEP.Icon = "VGUI/ttt/icon_lks_healthkit"

Everything is right as far as I know. One more thing, here is the resource.AddFile:


Help would be greatly admired. Thanks!

and your VTF ?

resource.AddFile will automatically add the VTF along with the VMT.

As for the problem, try accessing the material with a DImage control or something similar, that should narrow down the potential issues.

I’m positive these work, because my friend gave me them to use on my server (it works on his). I don’t know what the problem is.

EDIT: I’ve been wondering, It’s called VGUI in the .vmt, but the file directory is vgui (non caps) any difference?

Are you storing the files in gamemodes/<gamemode>/content ?

Uhh, no.

I put the swep into a pack, and put it in the addons folder. Example: “Apozens Healthkit” into the addons
folder. Inside “Apozen’s Healthkit” has a models, materials, sound, and lua folder. Everything works, even the model. The only thing that does not work is the Icon.

You should put the Vmt,vtf files to the \orangebox\garrysmod\materials\vgui tt folder.

And Here is the scripts that i could help you


if SERVER then
AddCSLuaFile( “shared.lua” )

SWEP.HoldType = “pistol”

if CLIENT then
SWEP.PrintName = “USP”
SWEP.Slot = 1

SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = true

SWEP.Icon = “VGUI/ttt/icon_usp”
if SERVER then



Alright, so I should just place them DIRECTLY into the materials\vgui tt folder, and not in a pack in the addons folder? Alright, i’ll try.

[editline]15th August 2011[/editline]

Well it seems that solved the issue, thanks!