[FREE] V-Requirements A Simple inventory ui that shows when in range

I tested with qs-inventory and changed everything from qb-inventory to qs but it doesnt seem to show the images correctly. I think its the path i used but its the same that i was using

RegisterCommand(“showreq”, function()
Item = “lockpick”
exports[“rl_requirements”]:ShowRequirements({
{
[“Amount”] = 1,
[“Label”] = Core.Shared.Items[“lockpick”].label,
[“Image”] = rlConfig.Inventory … rlConfig.ImagePath … Item … “.png”,
},
{
[“Amount”] = 21,
[“Label”] = Core.Shared.Items[“lockpick”].label,
[“Image”] = rlConfig.Inventory … rlConfig.ImagePath … Item … “.png”,
},
})
end)


You no longer have to add the [“Image”] when calling the export, it will be automaticly done inside the export it self, it is working for ox_inventory and ESX, so technically it should be working for qb aswell, as for qs it should be to but i could be wrong.

your command should be looking like this know

RegisterCommand(“showreq”, function()
    exports["rl_requirements"]:ShowRequirements({ 
        { 
            [“Amount”] = 1,
            [“Label”] = Core.Shared.Items[“lockpick”].label,
        }, 
        { 
            [“Amount”] = 21,
            [“Label”] = Core.Shared.Items[“lockpick”].label,
        }, 
    })
end)

ah i think i see it mate, your rlConfig.Inventory is "qs-inventory" and ur “rlConfig.ImagePath” is "html/images/

so together that would be "qs-inventoryhtml/images/"

while it should be "qs-inventory/html/images" all together, so you should add a “/” infront off the html/image

try that and let me know again.

Awesome bro much love :slight_smile:

1 Like

ESX has been done, original github is somewere above in the comments.

yeah i figured it needed a “/” there but i tried it and it still wasn’t showing the image

I do get this error in my console though

dowload the updated version from NupNipz, it includes the hasitem function

Oh damn that’s weird it seems like i forgot to push my last commit to github men, i will fix this in a second

Ooh i did push, you have to update to the latest, and it should work from there on.

so i updated it and for some reason i got the same issue, am i missing something lol

hmm thats odd, it was working fine for me, i will check this out in a bit,

EDIT: i found it i am gonna push a updated version in a couple of minuts

1 Like

Issue should be resolved now, redownload the resource one more time.

1 Like

Perfect! You could also add a qs-inventory option in the config

Bro in case you are interested, nothing of the other world just combine the requirements script and dialogue in oneself to reduce resources in my server and it works well in case you want to use it for some subsequent update or something like that. Nothing was changed and it works the same


v-requirements.7z (14.0 KB)

1 Like