vRP Inventory [Paid]
Instructions for the vRP paid Inventory and other info that is needed
File Changes Needed
This inventory integrates with the vRP chest system resulting in no change needed, apart from a few files so it seamlessly links with the new inventory that you have just purchased! This will work with the loot bags and existing housing script when changed, or if you prefer you can seamlessly use the vRP.OpenChest function to create custom storage that will integrate seamlessly upon changing the files.
The file changes are now detailed below on the GitHub these are the files you need to change or add the differences to.
Configuration
There is a custom item setup you can use located in the resource once you purchase it, in items.lua you can make custom item functions here, and remember you need to take the item from the user when the item is used as it does not do this automatically in custom item functions. The inventory will however check if they have the item before trying to run the designated custom function, but will not take the item once used as specified you need to do this in your code. Remember also, that custom functions do need to be using the proxy feature as they will be called within the vrp_inventory runtime, meaning they will need to be wrapped in brackets as explained on Proxy Documentation
An example has been kindly provided for you in the items.lua file, on how to use this using a Water beverage item.
The CSS and color scheming on the inventory is also fully customizable using the index.css file you can change the variables which will allow you to fully customize the inventory. These are self-explanatory and you can see these in the css file, which is not escrowed. The title of the inventory can be modified in the config.html file.
Custom Items
Adding custom items is done in the items.lua script, and can be seen as below
This is how custom items are registered, via Item key being the "waterbev", and "Water Bottle" being the item name, and 0.5 being the item weight, and the function being what is called when the function is used and will provide the player and user_id when the use button is pressed on the inventory.
API Documentation
You can interact with the inventory in various ways too, see here how you can!
You can trigger this anywhere on the server side, with the player being the source to then reset the player's equipped weapons bar.
You will find you can use this to update the main inventory in real time, with player being the source trigger it in any server file after an inventory change or item update.
You can use this to update both inventories where you will need to pass the InventoryName, InventoryData and Max weight, if you are looking to use the chest systems you should just use vRP.openChest for the full compatability.
Any further support?
Please try to read through this page fully before raising any issues on our server.
For any further queries or support you can find us on our Discord!
How to purchase?
You can purchase from our Tebex Store
Last updated