mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
23 lines
564 B
Plaintext
23 lines
564 B
Plaintext
private ["_trader_data", "_dialog"];
|
|
|
|
if (DZE_ActionInProgress) exitWith {cutText [localize "str_epoch_player_97","PLAIN DOWN"];};
|
|
|
|
_trader_data = (_this select 3);
|
|
|
|
_dialog = createdialog "TraderDialog";
|
|
lbClear TraderDialogCatList;
|
|
lbClear TraderDialogItemList;
|
|
|
|
TraderCurrentCatIndex = -1;
|
|
TraderItemList = [];
|
|
|
|
TraderCatList = [];
|
|
{
|
|
private ["_index", "_x"];
|
|
_index = lbAdd [TraderDialogCatList, _x select 0];
|
|
TraderCatList set [count TraderCatList, _x select 1];
|
|
} count _trader_data;
|
|
waitUntil { !dialog };
|
|
TraderCurrentCatIndex = -1;
|
|
TraderCatList = [];
|