• File path not recognizing image.
    2 replies, posted
Hello again, yet another rather silly question probably that i'm just too tired to realize the answer to, but i'm hoping someone could help out here... I've made a rather nice looking HUD, and I have a load of images on there, using materials. When I type in a full path to the material, like so... local Image = Material( "C:/Program Files (x86)/Steam/steamapps/common/GarrysMod/garrysmod/addons/darkrpmodification-master/lua/darkrp_modules/veterian_hud/materials/base.png" ) It works absolutely fine, but obviously only on my end, considering that's my personal path. However, if I try and do it like this... local Image = Material( "materials/base.png" ) Or just base.png, thinking it may just go from the materials folder or something it doesn't work. I even tried using .vtf files, however using .vtf it doesn't even work when using the top method which does work with a png.
Please read the wiki Material The image file path is relative to materials/ so you do not have to include it in the file path it would just be base.png
ohhh, of course! It's within DarkRP isn't it. Thank you, i'll try it now
Sorry, you need to Log In to post a reply to this thread.