Thread: gui lister
View Single Post
  #1  
Old 02-27-2011, 05:34 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
gui lister

Hey guys, i tried around with the GuiPopUpMenuCtrl(" ") and got two questions. First:

I placed the following into a NPC:
PHP Code:
function onCreated() {
  
this.join("test1");
}
//#CLIENTSIDE
function onCreated() {
  
this.bla1 "bla";
  
this.bla2 "bla";

and this is a part of the class "test1":
PHP Code:
new GuiPopUpMenuCtrl("test1_List") {
  
width 130;
  
height 20;
  
10;
  
77;
  
cleararrows();   
  
addrow(0,this.bla1);
  
addrow(1,this.bla2);
  
sort();
  
setSelectedRow(0);

So when I make it that way, it won´t say the this.bla1 or this.bla2. How could I make it that it will say that?

Seccond question:
I figured out, how to make it listing the player.weapons.
PHP Code:
for (temp.weapon player.weapons) {
        if (! 
weapon.name.starts("-")) {
          
addRow(0weapon.name);
        }
      } 
But how could I make it list like when I got a flag called:
clientr.test = 1,2,3,4
That it will list the clientr.test?
Reply With Quote