Icon16 not in gmod?

Hey,

When I implemented some icon16s in my HUD, they were all missing textures,

So I got into my GMod material folder and saw they weren’t there.

Verify Game cache didnt work…

Does someone else have a fix for this?

Most of the game’s base content is inside the VPK archives. You should post the relevant code that isn’t displaying the materials, but there’s quite a lot of icons available as “icon16/<iconname>.png”.



	table.insert( text, {"Name: "..lpl:GetNetworkedString("RPName"), "icon16/user.png"} );
	table.insert( text, {"Money: $"..string.Comma((lpl._Money or 0)), "icon16/money.png"} );
	table.insert( text, {"Job: "..lpl:GetNetworkedString("Job"), "icon16/wrench.png"} );
	table.insert( text, {"Salary: $"..(lpl._Salary or 0), "icon16/coins.png"} );
	table.insert( text, {"Gender: "..(lpl._Gender or "Male"), "icon16/user.png"} );
	table.insert( text, {"Description: "..lpl:GetNetworkedString("Description"), "icon16/status_offline.png"});
	table.insert( text, {"Clan: "..lpl:GetNetworkedString("Clan"), "icon16/group.png"} );
	table.insert( text, {"Playtime: "..timeToStr(  lpl:GetUTimeTotalTime()  ), "icon16/clock.png"} );

All are in the game and all of them are not displaying.

Post the code that actually draws the images.

Also see this page:

Thanks.

I forgot to change something to SetImage.

Closed