Hello,
I was creating and HUD which should contain 3 images. When I used it on a local server, I didn't have a single problem but when I bring it to my server online, it seems that gmod doesn't want recognize my images. I tried to change my images with another addon which work propally with it own images and when I used it, it works but not with the images that I want.
How can I solve this ?
/code local background = Material( "stungun/background.png")
local background2 = Material( "stungun/title.png)
local arrestimg = Material( "stungun/title.png" ) /code
You need to add download them to the clients connecting to your server with either fastdl, resource.addfile, or make the workshop.
I'm going to test it
Well I tried to put /code if SERVER then
resource.AddFile( "addons/darkrpmodification/lua/darkrp_modules/sbagc_hud/materials/jail.png" )----------IMAGE (BACKGROUND)
resource.AddFile( "addons/darkrpmodification/lua/darkrp_modules/sbagc_hud/materials/background.png" ) )
resource.AddFile( "addons/darkrpmodification/lua/darkrp_modules/sbagc_hud/materials/title.png" ) )------------- ICONS
end
/code but it doesn't work :/
Please open the wiki page for that function and try to figure out your mistake.
Well I tried /code
resource.AddFile( "lua/darkrp_modules/sbagc_hud/materials/title.png") but it isn't that
Your pathing is incorrect, and the wiki page for resource.AddFile explains why.
Sorry, you need to Log In to post a reply to this thread.