Code:
hint "Spawning Tent";
_pos = [((getPosATL player) select 0) + 3, ((getPosATL player) select 1) + 3, (getPosATL player) select 2];
//call compile (""loltent = 'TentStorage' creat""+""eVehicle %1;"");
_tent = format ["if (isServer) then
{
[0, nil, [0, %1], 'TentStorage'] call local_publishObj;
loltent = %1 nearestObject 'TentStorage';
};", _pos];
[_tent] execVM "scr\exec.sqf";
sleep 5;
_tent2 = "if (isServer) then
{
call compile (""{loltent addWea""+""ponCargoGlobal [_x, 1];} forEach
['BAF_AS50_scoped','M4A1_AIM_SD_camo','M9SD', 'M9SD','Binocular_Vector','ItemCompass','ItemGPS',
'ItemToolbox','NVGoggles','NVGoggles'];"");
};";
[_tent2] execVM "scr\exec.sqf";
sleep 5;
_tent3 = "if (isServer) then
{
call compile (""{loltent addMagazi""+""neCargoGlobal [_x, 1];} forEach
['30Rnd_556x45_StanagSD', '30Rnd_556x45_StanagSD', '30Rnd_556x45_StanagSD', '30Rnd_556x45_StanagSD', '30Rnd_556x45_StanagSD', '5Rnd_127x99_as50','5Rnd_127x99_as50', '5Rnd_127x99_as50', '5Rnd_127x99_as50', '5Rnd_127x99_as50', '15Rnd_9x19_M9SD', '15Rnd_9x19_M9SD', '15Rnd_9x19_M9SD', '15Rnd_9x19_M9SD', '15Rnd_9x19_M9SD', '15Rnd_9x19_M9SD', '15Rnd_9x19_M9SD', '15Rnd_9x19_M9SD', '15Rnd_9x19_M9SD', 'FoodSteakCooked', 'FoodSteakCooked', 'FoodSteakCooked', 'FoodSteakCooked', 'FoodSteakCooked','ItemAntibiotic', 'ItemAntibiotic',
'ItemBandage', 'ItemBandage', 'ItemBandage', 'ItemBandage','ItemBloodbag', 'ItemBloodbag', 'ItemBloodbag', 'ItemBloodbag', 'ItemBloodbag','ItemEpinephrine', 'ItemEpinephrine','ItemHeatPack', 'ItemHeatPack', 'ItemMorphine', 'ItemMorphine','ItemPainkiller', 'ItemPainkiller','ItemSodaMdew', 'ItemSodaMdew', 'ItemSodaMdew', 'ItemSodaMdew','ItemSodaPepsi','ItemTent',
'Skin_Sniper1_DZ'];"");
};";
[_tent3] execVM "scr\exec.sqf";
sleep 5;
_tent4 = "if (isServer) then
{
call compile (""loltent addBackpa""+""ckCargoGlobal ['DZ_Backpack_EP1', 5];"");
};";
[_tent4] execVM "scr\exec.sqf";
Change all the scr\exec.sqf to the path to your remote exc script.