Images in gamemode HUD?

Alright, so I have been working on a flood gamemode and found basic HUD tutorials on the “Garrys Mod Wiki”. So I started thinking what I want on my HUD in the gamemode. I have seen other gamemodes like “gmod tower” and such with images on the HUD. So I was wondering, how do you do it? Thanks so much guys. :slight_smile:

I think you have to use **[Surface.SetTexture

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Surface.SetTexture)** and **[Surface.DrawTexturedRect

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Surface.DrawTexturedRect)**

Thanks, but how could I use these in lua to show an image?

Did you even click the links? There’s even examples describing exactly what you are trying to accomplish.

yes I clicked the links, I’m just not getting it.

[editline]7th August 2011[/editline]

What I mean is, where do I put the image?

You have to convert the image into a VTF (Valve Texture File), and then draw a textured box with it.

Ok, and would I have to put my vtf into a certain folder? Because I want people that connect to the gamemode to have it as well. Thanks for all of your help :slight_smile:

It should go in garrysmod/garrysmod/materials on the server, and then to make it send to the clients use **[Resource.AddFile

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Resource.AddFile)**

And when people join the server, will the loading screen say “Downloading blank.vtf”, or will it just appear with the gamemode?

“Downloading blank.vtf”

Thanks so much!