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;
x = 10;
y = 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(0, weapon.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?