Right now I’m trying to use a custom icon for a darkrp HUD, but I can’t seem to get the directory right or somthing.
I’m completely stumped, I’ve tried to change the directory to a bunch of things.
Here is my code:
This is a shortened version of the code. Obviously I have other things for the hud, such as health, armor, etc.
if CLIENT then resource.AddFile("material/hud/health.png") local function drawIcon() surface.SetMaterial(Material("material/hud/health.png")) surface.SetDrawColor(255,255,255,255) surface.DrawTexturedRect(370 + 10,ScrH() - 160,25,25) end local function DrawHUD() drawIcon() end hook.Add("HUDPaint","DrawHUD",DrawHUD)
The file is located in:
That is the location on my computer / Dedicated Server