Advertisement
Guest User

Untitled

a guest
May 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.61 KB | None | 0 0
  1. {
  2.     private _fnc_scriptNameParent = if (isNil '_fnc_scriptName') then {'OEC_fnc_mvGObPlAPikPdIT'} else {_fnc_scriptName};
  3.     private _fnc_scriptName = 'OEC_fnc_mvGObPlAPikPdIT';
  4.     scriptName _fnc_scriptName;
  5.  
  6. #line 1 "dialog\VenzQaCRIDpzUCc\fn_mvGObPlAPikPdIT.sqf [OEC_fnc_mvGObPlAPikPdIT]"
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. private _confirm=[format["Are you sure you want to sell that vehicle?"],"Confirm Vehicle Sell","Yes","No"]call BIS_fnc_guiMessage;if!(_confirm) exitWith{closeDialog 0};disableSerialization;if(lbCurSel 2802 isEqualTo-1) exitWith{hint localize"STR_Global_NoSelection";};private _vehicle=lbData[2802,(lbCurSel 2802)];_vehicle=(call compile format["%1",_vehicle]) select 0;private _vid=lbValue[2802,(lbCurSel 2802)];if(isNil"_vehicle") exitWith{hint localize"STR_Garage_Selection_Error";};if(_vid isEqualTo oev_previousVehicleSold) exitWith{hint"You cannot sell the same vehicle twice.";};oev_previousVehicleSold=_vid;private _price=1000;
  23. private _sellPct=0.4;private _CpclmaUpCDMOIym=["allVehicles",_vehicle]call OEC_fnc_munLpdbJqJEBGFw;if(count _CpclmaUpCDMOIym>0) then{_price=((_CpclmaUpCDMOIym select 6)*(call DawnObTuNpLdDyN)*_sellPct);};[[_vid,(getPlayerUID player),_price,player,oev_garage_type],"OES_fnc_wzCafqpdVxDvwIS",false,false]spawn OEC_fnc_MP;hint format[localize"STR_Garage_SoldCar",[_price]call OEC_fnc_UDMDqfIckPOCrHE];qijnojFTDMsMzBe=qijnojFTDMsMzBe+_price;rVhOixQgHxCMCCA=rVhOixQgHxCMCCA+_price;[[format['{"event":"Garage Sell", "player":"%1", "target":"%2", "value":"%3", "location":"%4"}',getPlayerUID player,_vid,_price,getPos player]],"OES_fnc_hrOugRuzDIdfqLI",false,false]call OEC_fnc_MP;closeDialog 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement