[life_pInact_curTarget,player] spawn life_fnc_storeVehicle; closeDialog 0;
[life_pInact_curTarget,player,true] spawn life_fnc_storeVehicle; closeDialog 0;
_storetext = localize "STR_Garage_Store_Success";
_exit = false;
if (param [2,false,[false]]) then {
if ((typeOf _vehicle) in ["CAMION_1","CAMION_2","..."]) exitWith {_exit = true;};
};
if (_exit) exitWith {};
[life_pInact_curTarget,player] spawn life_fnc_storeVehicle; closeDialog 0;
[life_pInact_curTarget,player,true] spawn life_fnc_storeVehicle; closeDialog 0;
_storetext = localize "STR_Garage_Store_Success";
_exit = false;
if (param [2,false,[false]]) then {
if ((typeOf _vehicle) in ["CAMION_1","CAMION_2","..."]) exitWith {_exit = true;};
};
if (_exit) exitWith {};
[getPlayerUID player,playerSide,_type,player] remoteExec ["TON_fnc_getVehicles",RSERV];
[getPlayerUID player,playerSide,_type,player,true] remoteExec ["TON_fnc_getVehicles",RSERV];
[_queryResult] remoteExec ["life_fnc_impoundMenu",_unit];
if (param [4,false,[false]]) then {
for "_i" from (count _queryResult - 1) to 0 step -1 do {
_element = _queryResult select _i;
if ((_element select 2) in ["CAMION_1","CAMION_2","..."]) then {
_queryResult deleteAt _i;
};
};
};