Quote:
|
Originally Posted by Omini
How would I go about displaying a persons client(r) strings in a GUI?
Would it be something like
If not, how would I be able to do it?
|
You cannot call clientside functions from the serverside. Try something more along the lines of this:
PHP Code:
function onActionServerside() {
if(params[0] == "fetchinfo") {
with(findPlayer(params[1])) {
temp.statarray = { client.stat1, client.stat2, /* Etc */ };
}
player.triggerclient("gui", this.name, "retreiveinfo", temp.statarray);
}
}
//#CLIENTSIDE
function onActionClientside() {
if(params[0] == "retreiveinfo") {
this.stat1 = params[1][0];
this.stat2 = params[1][1];
// etc
NewGuiWindow();
}
}
function onCreated() {
triggerserver("gui", this.name, "fetchinfo", "KewlPlayer001");
}