Guest User

Untitled

a guest
Oct 21st, 2016
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. /**
  2. * ExileClient_gui_wasteDumpDialog_event_onSellButtonClick
  3. *
  4. * Exile Mod
  5. * www.exilemod.com
  6. * © 2015 Exile Mod Team
  7. *
  8. * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  9. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  10. */
  11.  
  12. private["_display","_dropdown","_index","_vehicleNetID","_mode"];
  13.  
  14. disableSerialization;
  15.  
  16. if !(ExileClientIsWaitingForServerTradeResponse) then
  17. {
  18. ExileClientIsWaitingForServerTradeResponse = true;
  19.  
  20. _display = uiNameSpace getVariable ["RscExileWasteDumpDialog", displayNull];
  21.  
  22. _dropdown = _display displayCtrl 4002;
  23.  
  24. _index = lbCurSel _dropdown;
  25.  
  26. _vehicleNetID = _dropdown lbData _index;
  27.  
  28. _mode = _dropdown lbValue _index;
  29.  
  30. ["wasteDumpRequest", [_vehicleNetID, _mode]] call ExileClient_system_network_send;
  31.  
  32. closeDialog 0;
  33. };
Advertisement
Add Comment
Please, Sign In to add comment