Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- private _fnc_scriptNameParent = if (isNil '_fnc_scriptName') then {'OEC_fnc_mvGObPlAPikPdIT'} else {_fnc_scriptName};
- private _fnc_scriptName = 'OEC_fnc_mvGObPlAPikPdIT';
- scriptName _fnc_scriptName;
- #line 1 "dialog\VenzQaCRIDpzUCc\fn_mvGObPlAPikPdIT.sqf [OEC_fnc_mvGObPlAPikPdIT]"
- 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;
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement