function clientcmdUpdateMedievalModResource(%type,%amount)
{
//This is just an example, change the text box names to whatever you need and add the rest of your ores
switch$(%type)
{
case "Copper Ore":
%txt = txtAmtCopperOre;
case "Iron Ore":
%txt = txtAmtIronOre;
}
if(%amount <= 0)
%col = "\c0";
else
%col = "\c1";
%message = "\c6" @ %type @ ":" SPC %col @ %amount;
%txt.setText(%message);
}
The text controls should be GuiMLTextCtrls if they aren't already. If you have zero ore, it'll display in red, otherwise the number displays in \c1. (I think it's blue)
This uses the same commandtoclient line I posted.
Also, you should probably use something to determine that the client has the GUI first like a command sent to everyone joining the server - perhaps sending all messages through chat (as well as an occasional "by the way, you can use the GUI for this" one) if they don't.