CodeM Inventory
Improve compatibility between our Meth Crafting & codem-inventory
Last updated
Improve compatibility between our Meth Crafting & codem-inventory
Last updated
Please follow all the instructions below carefully! The steps below are required in order to make codem-inventory work properly with our meth cooking script.
The first part to making codem-inventory work smoothly with our meth script is by adding a new function to add items into a stash. To get started go to: codem-inventory/editable/serverexport.lua file line 982 and hit enter twice to create some blank space. It should look like this:
Then, copy the code below and paste it where we created the blank space from above.
Step 3
After pasting the code above from Step 2 into the serverexports.lua file then go down to line 1065. It should be the bottom of a list of exports. Hit enter to create a new line and add the following code:
After adding the line of code from above, it should now look like this:
The last thing we must do is update the metadata.js file found in the config folder of codem-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 codem-inventory/config/metadata.js & open this file in Visual Studio Code or a similar editor. Search for the item "lawyerpass" (at the time of this writing it is found on line 36). 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 all the files we edited (serverexport.lua & metadata.js), restart your server & enjoy!
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.