Making an inventory system?

I am going to start making a inventory system for DarkRP. I was really just wondering if you guys have any tips on how to do it? Or anything I have to watch out for?
I am going to store the inventory data in a MySQL database, are there any disadvantages to this?
Also with the GUI (Derma). I don’t know how I would tackle displaying items in a grid. Any ideas on this are very welcome!

Any help is appreciated :smiley:

  • FP

There is a tutorial on the wiki somewhere.

  1. Never trust client input. When designing client-server-client networking, always keep that in mind. Always validate data that is sent from client.
  2. As for inventory itself, http://wiki.garrysmod.com/page/Category:DGrid http://wiki.garrysmod.com/page/Category:DScrollPanel
    http://wiki.garrysmod.com/page/Category:DIconLayout

These should be useful.

Well motherfucker, I had no idea DGrid existed and have been using DIconLayout to accomplish the same tasks.

Rude.