So I have two images (both PNGS) and asoon as i put them inside my code they dont work
[QUOTE]local unsc = vgui.Create( "DImage", frame )
unsc:SetPos( 10, 20 )
unsc:SetSize( 380, 130 )
unsc:SetImage( "lua/unsc" )
[/QUOTE]
does anyone know how to insert a image so it shows up on the DFrame?
Make sure that:
- The image is in the materials/ folder
- The file is downloaded by clients (resource.AddSingleFile)
- The paths of the two above are correct
If your image is a .png, why do you not have .png in the file path?
Use DImage:SetMaterial( Material("path/tofile.png") ) for pngs
Sorry, you need to Log In to post a reply to this thread.