I’ve created a custom HUD for a gamemode that’s in the making, but I’m having some weird trouble getting it to correctly draw on the screen.
When I originally designed and coded the script, it worked flawlessly. The HUD looked beautiful, and I thought I was done messing with it. However, after transferring my Garry’s Mod 12 files from one computer to another (An exact copy and paste from one Steam directory to another, mind you) the script draws a missing texture. I’ve triple-checked the code, and it parses with no problems. It points to the correct directory and to the correct file, and I’ve verified that the file is in the directory specified. I’ve also verified that the file is not corrupt by opening it in VTFEdit, and it looked fine to me.
This was first encountered after transferring to a new computer. I’m encountering the same problem once again with the first computer, except this time in Garry’s Mod 13. I have no idea what’s wrong. Does anybody have any ideas?
The function in question is below.
local HUD = surface.GetTextureID(“MonopolyInterface/hud”)
surface.SetDrawColor(255, 255, 255, 255)
surface.DrawTexturedRect(0, 0, ScrW(), ScrH())