Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   addtext() serverside? (https://forums.graalonline.com/forums/showthread.php?t=134262248)

PowerProNL 02-27-2011 02:01 PM

addtext() serverside?
 
Hey is there a way to make GUITexteditCtrl.Addtext(); (or whatever) serverside?

xAndrewx 02-27-2011 02:36 PM

No because its a clientside object. Trigger the client back with your data

HTML Code:

player.triggerclient("weapon", "params");
HTML Code:

function onActionClientside() {
  obj.addText();
  //or
  obj.text = "hi";
}


PowerProNL 02-27-2011 03:31 PM

I did that after it didn't work, but still same problem.

xAndrewx 02-27-2011 05:21 PM

hmm you shouldn't be using add text for it-
HTML Code:

GUITexteditCtrl.text = "hi";


All times are GMT +2. The time now is 10:29 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.