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

Showcase

I didn’t create this script I just modified it, and added instructions

ORIGINAL UPDATED VERSION

DOWNLOAD FROM THIS VERSION ^^^^^^^^

How to Use Simplied version

  1. Drag and drop into server

  2. Ensure Resource

  3. Find a script of your choice then add the line line:

Example:

exports[“v-requirements”]:ShowRequirements({
{
[“Amount”] = 1,
[“Image”] = “qs-inventory/html/images/gold_ring.png”,
[“Label”] = QBCore.Shared.Items[“gold_ring”].label
},
{
[“Amount”] = 21,
[“Image”] = “qs-inventory/html/images/sapphire_earrings.png”,
[“Label”] = QBCore.Shared.Items[“sapphire_earrings”].label
},
})

  1. Find there you want to hide the resource and add:

exports[“v-requirements”]:HideRequirements()

  1. You’re done

TIP
If you are getting an error you might have either typed the wrong item name (QBCore.Shared.Items)
or you didnt type the correct path to your inventory images

Example for qs-inventory:

     {
         ["Amount"] = 21,
         ["Image"] = "qs-inventory/html/images/sapphire_earrings.png",
         ["Label"] = QBCore.Shared.Items["sapphire_earrings"].label
     },

Example for ox_inventory:

     {
         ["Amount"] = 1,
         ["Image"] = "ox_inventory/web/images/gold_ring.png",
         ["Label"] = QBCore.Shared.Items["gold_ring"].label
     },

Example for qb-inventory:

     {
         ["Amount"] = 1,
         ["Image"] = "qb-inventory/html/images/gold_ring.png",
         ["Label"] = QBCore.Shared.Items["gold_ring"].label
     },

OLDER SIMPLIFIED VERSION:
[GitHub - yungmexx/v-requirements]

Other Scripts from Me:
[FREE][Standalone] V-VehicleCamShake Controls the vehicle cam while in the air

[[FREE] V-DialogueUi A Clean Simple Dialogue Text using Export and Trigger]

[STANDALONE][ESX][QB] Cinematic Camera Control Using TriggerEvent

Code is accessible Yes
Subscription-based No
Lines (approximately) 50
Requirements An inventory system and QBCore
Support Yes
7 Likes

Very beautiful, thank you for share it

1 Like

Did you change anything or did you only add like the instructions for different inventory`s?

What is the difference with the original

I changed it from R1.shared.items to qbcore.shared.items. And I included a how to guide. I don’t mean to claim it as my own I just thought it needed an explanation and examples of how you would use it for different inventorys

I couldn’t find the original cfx post so I decided to make one but change it from r1.shared.items to qbcore.shared.items and included a how to guide for people who wouldn’t understand how to use it. I’m not claiming it as my own I just don’t know if the creator made a cfx post about it and thought it was worth for people to check out.

You’re welcome :grin:

Oh very well, I thought that it did some different function hehe, I tried to configure it with the same example script that you put but it did not work for me, it still appears even if I already have the materials and does not start the theft

1 Like

I updated the read me so if you would like to see how it should look its there i tried to comment it but its in review lol

yea it will stilll show the items, even if you have them, i can add somethine like a check for that if your intrested, shoot me a dm.

Nice Work. Keep it :heart:

NupNipz is updating his resource to use “hasItem” function and a config

Try using this since he recently updated it to use a hasItem function
GitHub - NupNipz/rl_requirements

Thank you :grin:

Wait i didnt realize it was you lol yes adding a config to check if hasitem would be a neat function

ahah lmao yea that`s indeed me mate, yea there is indeed a function now that will check if you have the required item, and if you do have then it will remove the itembox, the ox_inventory version works for sure, the qb-inventory version is untested since i do not use qb-inventory myself, so if someone runs into any issues just let it know.

1 Like

Hello guys, any versions for esx?

1 Like

Can do this, will look into this in a couple of hours

1 Like

i use qs-inventory but i think qb-inventory uses the same functions so ill give it a try. And i dont mean to steal your script from you lol since you released an update i could just change my cfx post to your github page. Or i could fork but that would take credits lol

1 Like

Yea qs and qb-inventory both use the same functions if I’m correct. and nah that`s all good mate iknow.

1 Like