I’ve recently been working on a gamemode, for the experience and learning. I’ve got a few questions.
I’ve got a SENT which is basically a crate for storing items. Let’s say the items are stored within self.Items. But then I want it so when the client presses E on the crate, it draws a GUI with all the items. What would be a good way to send the item table to the client? I tried SetNetworkedVar() but that does not take tables. Is datastream the way to do it?
So far, when an entity is stored in the crate, I store it’s name, model and the classname. I’d obviously prefer to just store the classname and then retrieve the printname and model when needed (drawing the GUI). I played around with weapons.Get(), weapons.GetList() and weapons.GetStored() but failed.
All help appreciated, thanks.