• Give self item using Bobbleheads Grid-Base Inventory
    3 replies, posted
Hey, so I followed Bobbleheads inventory and object oriented lua tutorials but I cant seem to figure out how I give myself a custom made item, item_weed420 came with the tutorial in his download link, but I will link the wikis below incase anyone can help me, thank you in advance. [url]http://wiki.garrysmod.com/page/Object_Oriented_Lua[/url] [url]http://wiki.garrysmod.com/page/Grid-Based_Inventory_System[/url]
I also tried to follow his tutorial some time ago. It had errors, and was incomplete. I am not even sure why it is on the wiki. In conclusion I rescripted it completely by myself, as this was easier. See #1 here [url]https://facepunch.com/showthread.php?t=1483696&p=48621593&viewfull=1#post48621593[/url] and #2 here [url]https://facepunch.com/showthread.php?t=1483696&p=48695004#post48695004[/url] For adding an item in his system, look at the PickupItem functionality of his system. And for getting a Item object, you need to call the Create functionality of the OOL tutorial. Something like local itemobject = invitem.Create("item_weed420") Also please note, that his system is completely clientside. You need to reimplement it on the serverside with functions like isRoomFor, to prevent cheaters from abusing the system.
I'm working on an inventory system that anyone can use, not ready to release publicily but let me know if you want to use it. [IMG]https://i.gyazo.com/d226d86983ff93d5abef0dbe94b0562c.png[/IMG]
[QUOTE=Sapd;50672723]I also tried to follow his tutorial some time ago. It had errors, and was incomplete. I am not even sure why it is on the wiki. In conclusion I rescripted it completely by myself, as this was easier. See #1 here [url]https://facepunch.com/showthread.php?t=1483696&p=48621593&viewfull=1#post48621593[/url] and #2 here [url]https://facepunch.com/showthread.php?t=1483696&p=48695004#post48695004[/url] For adding an item in his system, look at the PickupItem functionality of his system. And for getting a Item object, you need to call the Create functionality of the OOL tutorial. Something like local itemobject = invitem.Create("item_weed420") Also please note, that his system is completely clientside. You need to reimplement it on the serverside with functions like isRoomFor, to prevent cheaters from abusing the system.[/QUOTE] Alrighty, but how would I go about adding that item_weed420 to my inventory so I spawn with it? [editline]8th July 2016[/editline] [QUOTE=The Noodler;50672831]I'm working on an inventory system that anyone can use, not ready to release publicily but let me know if you want to use it. [IMG]https://i.gyazo.com/d226d86983ff93d5abef0dbe94b0562c.png[/IMG][/QUOTE] I'd much rather learn how to code a inventory system like yours, but if you can tutor me that'd be greatly appreciated
Sorry, you need to Log In to post a reply to this thread.