How would I go about displaying a persons client(r) strings in a GUI?
Would it be something like
PHP Code:
function onActionserverside()
{
if (params[0] == "findinfo") {
with (findplayer(params[1])) {
thiso.stat1 = client.stat1;
thiso.stat2 = client.stat2;
thiso.stat3 = clientr.stat3;
NewGuiWindow();
}
}
}
//#CLIENTSIDE
function onCreated()
{
NewGuiWindow();
triggeraction(0,0,"serverside",name,"findinfo",target);
}
function NewGuiWindow()
{
new GuiWindowCtrl(Window) {
awake = true;
canmaximize = false;
canresize = false;
height = 180;
profile = "GuiRedTransWindowProfile";
text = "Title";
visible = true;
width = 160;
x = 0;
y = 120;
new GuiTextCtrl(Text) {
x = 10;
y = 25;
width = 140;
height = 20;
useownprofile = true;
profile.fontcolor = {1,1,1};
text = thiso.stat1;
}
}
}
If not, how would I be able to do it?