Author Topic: Hide Brick Inventory [Solved]  (Read 1036 times)

I want to prevent the inventory gui from showing up when you cycle through its slots. I can find the command myself if someone tells me how to list all CommandToClient functions.
« Last Edit: July 22, 2013, 02:46:44 PM by tommybricksetti »


trace(1);
Yea, this is what I was exactly thinking about.

No luck with the playgui functions; doing it that way was too haxory. I'm thinking of using servercmdClearInventory(), but I don't know how to work that.

I think commandToClient() is my best bet, but I don't know the functions.

I don't believe you can prevent it from showing up from server-side. I suggest you stick to messing with trace(1); and messing with the "playgui". If you still can't figure it out, try to get someone to help you decipher the trace logs.

I did something different with it and it works, but now I need to close the brick inventory gui; before I wanted to have it open but hidden. servercmduseinventory(%client,-1); doesn't seem to close it.

I found clientcmdshowbricks(%bool) but it doesn't seem to do anything when I use it in console. The args are definitely right because when I traced mounting the brick tool, it called that cmd. If I could get it to work, commandToClient(%obj.client,'ShowBricks',1); would open the brick gui. Tested commandToClient(%obj.client,'timescale',0.5); and it worked.
« Last Edit: July 22, 2013, 01:12:33 PM by tommybricksetti »

I found clientcmdshowbricks(%bool) but it doesn't seem to do anything when I use it in console. The args are definitely right because when I traced mounting the brick tool, it called that cmd. If I could get it to work, commandToClient(%obj.client,'ShowBricks',1); would open the brick gui. Tested commandToClient(%obj.client,'timescale',0.5); and it worked.
clientCmdShowBricks toggle wether you can see invisible bricks or not.

Found a solution. I just toggled building for the minigame client off and then immediately back on.