• Create grid system on GLua...
    2 replies, posted
Hello, Here I would like to create a dynamic grid system like the Code Blue system is that someone would have ideas to start something I may be looking for but I can't find how to start. https://www.youtube.com/watch?v=bvPh3fezSSE I just need some information, thank you in advance.
may be this use html and javascript for grid and drag&drop, DHTML
I don't know why this answer is getting rated dumb. This is an excellent idea since there are many javascript libraries that allow dragging and dropping like described in this post. Since OP has no idea where to start you can see that he'll just need a bunch of good libraries to make this happen for him. Here you have a codepen of a javascript inventory: Inventory System You can load that into gmod like in the example described here, like @SupinePandora43 already said: Category:DHTML Using DHTML/QueueJavascript you could send commands to the web script. You could in the javascript have these kind of functions: function addItemsToInventory(itemArray){ // Write code here that adds all items in itemArray to the inventory system } function removeItem(itemId){ // Write code that removes the item by a unique ID } Using DHTML/AddFunction you could write a function in Lua that reacts to actions in the inventory: DHTML:AddFunction( "inventory", "use_item", function(itemId) -- Write code here that uses the item based on it's unique ID end )
Sorry, you need to Log In to post a reply to this thread.