Project Sloth Inventory
Improve compatibility between our Meth Crafting & ps-inventory
Last updated
Improve compatibility between our Meth Crafting & ps-inventory
Last updated
Please follow all the instructions below carefully! The steps below are required in order to make ps-inventory work properly with our meth cooking script.
The first part to making ps-inventory work smoothly with our meth script is by adding two new functions to add items into a stash. To get started go to: ps-inventory/server/main.lua file line 2780 and hit enter twice to create some blank space. It should look like this:
Step 2
Then, copy the code below and paste it where we created the blank space from above.
Save this file & move on to part 2 below!
The last thing we must do is update the app.js file found in the html/js folder of ps-inventory that will allow the information attached to certain items display on hover in your inventory. Follow the steps below to get started!
Navigate to ps-inventory/html/js/app.js & open this file in Visual Studio Code or a similar editor. Search for the item "markedbills" (at the time of this writing it is found on line 640). Then, place your cursor at the end of this code block, just like the image example below:
Step 2
Hit enter to create a new, empty line. And paste in the following code:
You're code should now look similar to the example in the image below:
Save, restart your server & you'll now see the necessary information when you hover over these items in your inventory!
Are you stuck?
No worries! If you need any help or experience any issues after following these instructions feel free to reach out to us via Discord or email at support@lationscripts.com.