ok so in my script that I have activate.
first I switch the cursel to 105.
then in my script that activates on the button I put:
_item = _this select 0;
_item createvehicle (getPos player);
so if I have Thing 1 selected, Thing 1 will be created?
sorry I am really new with dialogs.
here my script to create the dialog:
_ok = createDialog "shop_dialog";
_index = lbAdd [105, "[ $2,000 ] Skoda"];
lbSetData [105, _index, "Skoda"];
_index = lbAdd [105, "[ $2,000 ] Skoda (Blue)"];
lbSetData [105, _index, "SkodaBlue"];
_index = lbAdd [105, "[ $2,000 ] Skoda (Green)"];
lbSetData [105, _index, "SkodaGreen"];
_index = lbAdd [105, "[ $2,000 ] Skoda (Red)"];
lbSetData [105, _index, "SkodaRed"];
_index = lbAdd [105, "[ $3,500 ] Sedan"];
lbSetData [105, _index, "car_sedan"];
_index = lbAdd [105, "[ $4,500 ] Landrover"];
lbSetData [105, _index, "Landrover"];
lbSetCurSel [105, 0];
_menu = _this select 0;
_selection = _this select 1;