Regardless of whether I use the command console or a module to call this function, the return value of this function is always an empty table. Furthermore, when I use the command console command game.get_script_inventories("core"), this function results in an error, as previously demonstrated ...
What did you do? I simply entered the command /c local t = game.player.gui.screen.add{type = "entity-preview", entity = game.player.character} t.style.height = 180 t.style.width = 180 in the command box.
What happened? It just no thing happen.
What did you expect to happen instead? I wish I ...
What did you do? I simply entered the command /c local inv = game.create_inventory(16) local invs = game.get_script_inventories() game.print(invs[1]) in the command box.
What happened? It only returns nil , which does not align with the return value described in your API documentation.