• Inventory system - Spice up your gamemode!
    62 replies, posted
-Intended double-post due to forum issues-
Something's strange with the combine function. In cl_inventory.lua, line 124: "if j == itemname then" I added some debug lines, and it says that j = models/props_junk/garbage_glassbottle001a.mdl itemname = bottle01 Hm..?
-Not Intended double-post due to forum issues- Fatal error: Maximum execution time of 30 seconds exceeded in C:\websites\forums.facepunchstudios.com\includes\class_core.php on line 404
Bump. If I knew how to include scripts and manually load them, I'd add this to my server. But unfortunately I'm still a young padawan at Lua.
Awesome, finally got an inventory system! Now we need a GM10 winter survival and some awesome rp scripts. I can think of some cool stuff to do with this :v:
I was going to ask how to open the inventory because I implemented it into my own version of sanbox, but I can't figure it out, but since you said you don't want to answer that question, I'll have to figure it out myself.
inv_draw is to open inventory, can't figure out how to pick things up, though... Edit: F2 I think.
Something you really need to explain is picking objects up. I don't think anyone here knows how to actually perform this vital part of the script. You posted all the features of this but didn't say how we actually get to the point where most of these features are noticeable. There doesn't even actually seem to be a way to pick things up, it just seems like that part isn't even in there.
+walk and -walk were removed from garrysmod. You can't pick things up now, because I bound picking up to walk. Sorry all.
Oh well. You can still bind a button to +walk. Or to just walk. Thanks for explaining that, anyway.
I changed the code myself to pick up stuff with USE key instead, but still, as I said some days ago, the combine stuff won't work. [b]Edit:[/b] Btw, F4 to bring up the Inventory.
[QUOTE=Gmod4ever]+walk and -walk were removed from garrysmod. You can't pick things up now, because I bound picking up to walk. Sorry all.[/QUOTE] Arg you garry! :argh:
Can I say stalker rp gamemode :D
Dang...this is awesome, but now I need to figure out how to add a "use," "drop," and "combine" button to the inventory panel...oh well. I'll figure it out eventually. Nice work though, I'll be sure to give you credit when I (hopefully) release the mod I'm working on that uses this. EDIT: Also, how do you spawn/map/make/whatever not-prop_physics items? I tried just making prop_physics's, but that's not working... I mean, I can pick the items up, but they just show up as "a prop" and don't do what they're supposed to (the default ones provided). I'm confused... EDIT AGAIN: Aha...I'm stupid. You have to NAME the prop_physics's...okay. I get it. Awesomeness prevails!
This is a slight bump, but if anyone can answer i'd be obliged. I'm making a stalker type gameplay, and have created some artifacts in the item folder, but, I cannot figure out how to load the items into the world, or the inventory. Thanks.
Sort of reminds me of the Resident Evil Combine functions. (Red herb, green herb) and that kind of crap. Yet that would be pretty cool to implement chemicals in medkits so you can make sort of a advanced medkit. Worth the download. LUA King for you, sir.
Man, I need this for my Edited DarkRP, would be so nice to have this work, do I need to add a chatcommand to it? It will not work with F2 because Darkrp's Help menu is that, I am thinking of changing it to F6 or something, or chatcommands, although I have no clue how to do this, can anyone help me out here?
Does this save the users items so that when they rejointhey'll still have them, if not how would I make it do that?
Holy shit. Old thread is old. :excited:
E-E-E-E-EPIC BUMP.
Indeed. And I doubt the script would still work on the latest platform anyways. Makes me wonder why these kinds of threads don't get archived.
how to open the menu
How do you send the data from the server to the client, when you made this, oh and did you use user messages?
This is like two years old, it probably doesn't work anymore.
[QUOTE=o DefcoN o;13909082]This is like two years old, it probably doesn't work anymore.[/QUOTE] Why would it not work?
Sorry for the bump, but I'd love to get my hands on this, does anyone have it?
anybody got a download link that actually works? even if the actual lua doesnt work i can probly fix it :p
Thank you so much, You just saved me a whole month of work....
No DL available now? :(
[b]WHY DO THESE THINGS ALWAYS COME BACK TO HAUNT ME?![/b] :saddowns: If people really want an inventory system, I guess I can just release my current inventory system for Final Frontier, once I modify it a bit (IE take out the character stats bit in the VGUI). Would people like this inventory? [img_thumb]http://www.cubeupload.com/files/dbbe00inventory.png[/img_thumb]
Sorry, you need to Log In to post a reply to this thread.