I dont think neither of those options work in my case. (Might have to request an api call)
I'll be more specific:
If you type in /kick playername
that does correspond with the kick command in the API as you linked
https://lua-api.factorio.com/latest/Lua ... ick_player
however if you type in /o player_name or /open player_name
this opens up a pre made window that show players inventory
There is the get_main_inventory or get_inventory commands, but they return data, not open up a gui window like the /open command
https://lua-api.factorio.com/latest/Lua ... _inventory
Code: Select all
/c game.print(serpent.block(game.players[1].get_main_inventory().get_contents()))
returns a list of items in the main inventory for example
So I guess my question is could i call that pre-made gui windows somehow, or do i need to either recreate it or ask for an api hook?