Location of DImage

Dear Readers,

I still got some questions.
I want to put my own photo in screen. For my DarkRP HUD that im making.
But where do i have to put the file in order to let it work. I tryed everything now.

Here is the code that im using:


 local breen_img = vgui.Create( "DImage", Frame )
breen_img:SetPos( 10, 35 )	
breen_img:SetSize( 150, 150 )	
breen_img:SetImage( "scripted/breen_fakemonitor_1" ) 

Please help me!

I answered this in your previous thread. Stop making new threads for the same thing, keep it in the same one.

It just does not work…
D:\Steam\SteamApps\common\GarrysMod\garrysmod\materials\hud.png

And how should i locate it in the script?
It’s confused now.

Material(“hud.png”)

How should i put that in here?


  local breen_img = vgui.Create( "DImage", Frame )
breen_img:SetPos( 10, 35 )	
breen_img:SetSize( 150, 150 )	
breen_img:SetImage( "scripted/breen_fakemonitor_1" ) 

You’d simply put “hud.png” in DImage:SetImage.

It worked! Thank you!