#include "..\..\script_macros.hpp"
private ["_object","_attachPos"];
params [
["_size",0,[0]]
];
//if (!(nearestObject [player, "House"] in life_vehicles)) exitWith {hint localize "STR_ISTR_Box_NotinHouse";};
life_container_active = true;
closeDialog 0;
switch (_size) do {
// AJOUTER CLASS NAME DE LA COLONNE A
case 0: { _object = "B_supplyCrate_F" createVehicle [0,0,0]; };
case 1: { _object = "Box_IND_Grenades_F" createVehicle [0,0,0]; };
case 2: { _object = "Land_ChairWood_F" createVehicle [0,0,0]; };
case 3: { _object = "Land_OfficeCabinet_02_F" createVehicle [0,0,0]; };
case 4: { _object = "Land_OfficeChair_01_F" createVehicle [0,0,0]; };
case 5: { _object = "Land_OfficeCabinet_01_F" createVehicle [0,0,0]; };
case 6: { _object = "OfficeTable_01_old_F" createVehicle [0,0,0]; };
case 7: { _object = "OfficeTable_01_new_F" createVehicle [0,0,0]; };
case 8: { _object = "Land_MapBoard_01_Wall_F" createVehicle [0,0,0]; };
case 9: { _object = "Land_MapBoard_F" createVehicle [0,0,0]; };
case 10: { _object = "Land_ChairPlastic_F" createVehicle [0,0,0]; };
case 11: { _object = "Land_CampingChair_V2_F" createVehicle [0,0,0]; };
case 12: { _object = "Land_CampingChair_V2_white_F" createVehicle [0,0,0]; };
case 13: { _object = "Land_RattanChair_01_F" createVehicle [0,0,0]; };
case 14: { _object = "Land_CampingChair_V1_F" createVehicle [0,0,0]; };
case 15: { _object = "Land_CampingTable_F" createVehicle [0,0,0]; };
case 16: { _object = "Land_CampingTable_white_F" createVehicle [0,0,0]; };
case 17: { _object = "Land_CampingTable_small_F" createVehicle [0,0,0]; };
case 18: { _object = "Land_TablePlastic_01_F" createVehicle [0,0,0]; };
case 19: { _object = "Land_WoodenTable_02_large_F" createVehicle [0,0,0]; };
case 20: { _object = "Land_WoodenTable_large_F" createVehicle [0,0,0]; };
case 21: { _object = "Land_WoodenTable_small_F" createVehicle [0,0,0]; };
case 22: { _object = "Land_RattanTable_01_F" createVehicle [0,0,0]; };
case 23: { _object = "Land_ShelvesWooden_F" createVehicle [0,0,0]; };
case 24: { _object = "Land_ShelvesWooden_blue_F" createVehicle [0,0,0]; };
case 25: { _object = "Land_ShelvesWooden_khaki_F" createVehicle [0,0,0]; };
case 26: { _object = "Land_ShelvesMetal_F" createVehicle [0,0,0]; };
case 27: { _object = "Land_CashDesk_F" createVehicle [0,0,0]; };
case 28: { _object = "Land_Icebox_F" createVehicle [0,0,0]; };
case 29: { _object = "Land_Rack_F" createVehicle [0,0,0]; };
case 30: { _object = "Land_Metal_rack_F" createVehicle [0,0,0]; };
case 31: { _object = "Land_Metal_rack_Tall_F" createVehicle [0,0,0]; };
case 32: { _object = "Land_WoodenCounter_01_F" createVehicle [0,0,0]; };
case 33: { _object = "Land_Sunshade_F" createVehicle [0,0,0]; };
case 34: { _object = "Land_Sunshade_01_F" createVehicle [0,0,0]; };
case 35: { _object = "Land_Sunshade_02_F" createVehicle [0,0,0]; };
case 36: { _object = "Land_Sunshade_03_F" createVehicle [0,0,0]; };
case 37: { _object = "Land_Sunshade_04_F" createVehicle [0,0,0]; };
case 38: { _object = "Land_Sun_chair_F" createVehicle [0,0,0]; };
case 39: { _object = "Land_Sun_chair_green_F" createVehicle [0,0,0]; };
case 40: { _object = "Land_Bench_01_F" createVehicle [0,0,0]; };
case 41: { _object = "Land_Bench_02_F" createVehicle [0,0,0]; };
case 42: { _object = "Land_Bench_04_F" createVehicle [0,0,0]; };
case 43: { _object = "Land_Bench_05_F" createVehicle [0,0,0]; };
case 44: { _object = "Land_Sofa_01_F" createVehicle [0,0,0]; };
case 45: { _object = "Land_ArmChair_01_F" createVehicle [0,0,0]; };
case 46: { _object = "Land_WoodenBed_01_F" createVehicle [0,0,0]; };
case 47: { _object = "Land_TableBig_01_F" createVehicle [0,0,0]; };
case 48: { _object = "Land_TableSmall_01_F" createVehicle [0,0,0]; };
case 49: { _object = "Land_Bench_F" createVehicle [0,0,0]; };
case 50: { _object = "Land_Rug_01_F" createVehicle [0,0,0]; };
case 51: { _object = "V12_MEUBLETVB" createVehicle [0,0,0]; };
case 52: { _object = "V12_MEUBLETVBL" createVehicle [0,0,0]; };
case 53: { _object = "V12_MEUBLETVG" createVehicle [0,0,0]; };
case 54: { _object = "V12_MEUBLETVM" createVehicle [0,0,0]; };
case 55: { _object = "V12_MEUBLETV" createVehicle [0,0,0]; };
case 56: { _object = "V12_MEUBLETVR" createVehicle [0,0,0]; };
case 57: { _object = "Ikea01_02_F" createVehicle [0,0,0]; };
case 58: { _object = "Ikea01_03_F" createVehicle [0,0,0]; };
case 59: { _object = "Ikea01_04_F" createVehicle [0,0,0]; };
case 61: { _object = "Ikea01_05_F" createVehicle [0,0,0]; };
case 62: { _object = "Ikea01_06_F" createVehicle [0,0,0]; };
case 63: { _object = "V12_LIT" createVehicle [0,0,0]; };
case 64: { _object = "V12_LIT1" createVehicle [0,0,0]; };
case 65: { _object = "Fridge_01_closed_F" createVehicle [0,0,0]; };
case 66: { _object = "V12_Lampe" createVehicle [0,0,0]; };
case 67: { _object = "V12_LampeUV" createVehicle [0,0,0]; };
};
life_container_activeObj = _object;
_attachPos = [0.16, 3, ((boundingBoxReal _object) select 1) select 2];
[_object] remoteExecCall ["life_fnc_simDisable",RANY];
_object attachTo[player, _attachPos];
clearWeaponCargoGlobal _object;
clearMagazineCargoGlobal _object;
clearItemCargoGlobal _object;
clearBackpackCargoGlobal _object;
titleText [localize "STR_NOTF_PlaceContainer", "PLAIN"];