KRILLE123 / esx-kr-advanced-shops

29 stars 34 forks source link

No Pictures #35

Open 1UniQueGirl1 opened 4 years ago

1UniQueGirl1 commented 4 years ago

grafik

I don't see any of my pictures

JackieHigh commented 4 years ago

Remember to put images to html/img, then don't forget to put them into _resource.lua I personally use *'html/img/.png',**

files({
  'html/index.html',
  'html/script.js',
  'html/style.css',
    'html/img/*.png',
  'html/font/vibes.ttf',
  'html/img/box.png',
    'html/img/carticon.png',
})

After that you add images to config.lua

Config.Images = {
  [1]= {item = "pineapple",   src = "img/pineapple.png"},
}
puzzlemanMX commented 4 years ago

i have already do that and I don't see any of my pictures even the box image

vanemp21 commented 3 years ago

Same problem for me, any sugestion please

Coachgamin commented 3 years ago

same issue here... I found server/main.lua lines 87-94 has:

if data[1] == nil then imgsrc = 'img/box.png'

        for i=1, #Config.Images, 1 do
            if Config.Images[i].item == Item then
                imgsrc = Config.Images[i].src
            end
        end

but I change the "box" to any other pic I have put in to test if that is where the box is being pulled from I get no changes. So completly lost on where the script is pulling the box from if the resource and config lua's are completed correctly as stated above.

Thanks for the assist!!

ikingspeedy commented 3 years ago

same issue for me it jus shows bread and water and boxes