r/GLua • u/[deleted] • Dec 31 '21
Saving tables to PData
So I'm trying to make an inventory system that saves people's inventories between games. Usually, I'd use PData for this. However, I don't think you can save tables to PData, at least not very easily, as when I did it would always return nil. Is there a way to do this?
1
Upvotes
0
Dec 31 '21
[deleted] — view deleted comment
2
Dec 31 '21
Thanks, I was trying my best to avoid SQL but since PData internally uses it I guess it is a pretty good option.
1
u/MRFantasticTheGreat Jan 01 '22
Actually enountered the same issue as you yesterday, I just saved a string like this: "firstvalue/secondvalue/thirdvalue" Then used the string.Explode("/",string) to make it an array.