How do you get a table with the entire player inventory so it can be serialized to a text file ?
I'm trying to make a save/restore function.
I tried
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local player_inv = player:get_inventory()
local inv_list = player_inv:get_list("full_inv")