jordanbache97 47 Posted August 12, 2015 Hello all, I am working on a mission for my unit to play on and I needed to create a custom crate so I didnt do it and I thought it would be easier to just restrict VA to only show some things in the menu. I have created a Virtual_Arsenel_init.sqf if that is the right thing to do and put the right directory in the Box as so: null = [this] execVM "virtual_arsenal_init.sqf"; this addaction ["Virtual Arsenal",{["Open",true] call BIS_fnc_arsenal}]; and here is the init script: //Init stuff _crate = _this select 0; ["AmmoboxInit",[_crate,false,{true}]] spawn BIS_fnc_arsenal; //Lists of items to include _availableHeadgear = [ "UK3CB_BAF_H_CrewHelmet_A", "UK3CB_BAF_H_CrewHelmet_A_ESS_A", "UK3CB_BAF_H_Mk7_Camo_A", "UK3CB_BAF_H_Mk7_Camo_B", "UK3CB_BAF_H_Mk7_Camo_C", "UK3CB_BAF_H_Mk7_Camo_D", "UK3CB_BAF_H_Mk7_Camo_E", "UK3CB_BAF_H_Mk7_Camo_F", "UK3CB_BAF_H_Mk7_Camo_ESS_A", "UK3CB_BAF_H_Mk7_Camo_ESS_B", "UK3CB_BAF_H_Mk7_Camo_ESS_C", "UK3CB_BAF_H_Mk7_Camo_ESS_D", "UK3CB_BAF_H_Mk7_Camo_CESS_A", "UK3CB_BAF_H_Mk7_Camo_CESS_B", "UK3CB_BAF_H_Mk7_Camo_CESS_C", "UK3CB_BAF_H_Mk7_Camo_CESS_D", "UK3CB_BAF_H_Mk7_Net_A", "UK3CB_BAF_H_Mk7_Net_B", "UK3CB_BAF_H_Mk7_Net_C", "UK3CB_BAF_H_Mk7_Net_D", "UK3CB_BAF_H_Mk7_Net_ESS_A", "UK3CB_BAF_H_Mk7_Net_ESS_B", "UK3CB_BAF_H_Mk7_Net_ESS_C", "UK3CB_BAF_H_Mk7_Net_ESS_D", "UK3CB_BAF_H_Mk7_Net_CESS_A", "UK3CB_BAF_H_Mk7_Net_CESS_B", "UK3CB_BAF_H_Mk7_Net_CESS_C", "UK3CB_BAF_H_Mk7_Net_CESS_D", "UK3CB_BAF_H_Mk7_Scrim_A", "UK3CB_BAF_H_Mk7_Scrim_B", "UK3CB_BAF_H_Mk7_Scrim_C", "UK3CB_BAF_H_Mk7_Scrim_D", "UK3CB_BAF_H_Mk7_Scrim_E", "UK3CB_BAF_H_Mk7_Scrim_F", "UK3CB_BAF_H_Mk7_Scrim_ESS_A", "UK3CB_BAF_H_Mk7_Scrim_ESS_B", "UK3CB_BAF_H_Mk7_Scrim_ESS_C", ]; _availableGoggles = [ "G_Combat", "G_Lowprofile", "G_Shades_Black", "G_Shades_Blue", "G_Shades_Green", "G_Shades_Red", "G_Sport_Blackred", "G_Sport_Blackyellow", "G_Squares_Tinted", "G_Tactical_Black", "G_Tactical_Clear", "G_Bandanna_blk" ]; _availableUniforms = [ "U_B_CombatUniform_mcam", "U_B_CombatUniform_mcam_tshirt", "U_B_CombatUniform_mcam_vest", "U_B_HeliPilotCoveralls", "U_B_CTRG_1", "U_B_CTRG_2", "U_B_CTRG_3" ]; _availableVests = [ "V_BandollierB_khk", "V_BandollierB_blk", "V_PlateCarrier1_rgr", "V_PlateCarrier2_rgr", "V_PlateCarrierGL_rgr", "V_PlateCarrierSpec_rgr", "V_PlateCarrierL_CTRG", "V_PlateCarrierH_CTRG" ]; _availableBackpacks = [ "B_AssaultPack_rgr", "B_AssaultPack_mcamo", "B_Kitbag_rgr", "B_Kitbag_mcamo", "B_TacticalPack_blk", "B_TacticalPack_mcamo" ]; //Populate with predefined items and whatever is already in the crate [_crate,((backpackCargo _crate) + _availableBackpacks)] call BIS_fnc_addVirtualBackpackCargo; [_crate,((itemCargo _crate) + _availableHeadgear + _availableGoggles + _availableUniforms + _availableVests)] call BIS_fnc_addVirtualItemCargo; [_crate,(magazineCargo _crate)] call BIS_fnc_addVirtualMagazineCargo; [_crate,(weaponCargo _crate)] call BIS_fnc_addVirtualWeaponCargo; The script is still a work in progress to get all of the classnames switched to the mod ones, but can someone please tell me where im going wrong please? Share this post Link to post Share on other sites
davidoss 552 Posted August 12, 2015 Its could be little bit easier: private ["_crate", "_guns", "_mags", "_availableHeadgear", "_availableGoggles", "_availableUniforms", "_availableVests", "_availableBackpacks"]; _crate = _this select 0; _guns = ((getWeaponCargo _crate) select 0); _mags = ((getMagazineCargo _crate) select 0); _availableHeadgear = [ "UK3CB_BAF_H_CrewHelmet_A", "UK3CB_BAF_H_CrewHelmet_A_ESS_A", "UK3CB_BAF_H_Mk7_Camo_A", "UK3CB_BAF_H_Mk7_Camo_B", "UK3CB_BAF_H_Mk7_Camo_C", "UK3CB_BAF_H_Mk7_Camo_D", "UK3CB_BAF_H_Mk7_Camo_E", "UK3CB_BAF_H_Mk7_Camo_F", "UK3CB_BAF_H_Mk7_Camo_ESS_A", "UK3CB_BAF_H_Mk7_Camo_ESS_B", "UK3CB_BAF_H_Mk7_Camo_ESS_C", "UK3CB_BAF_H_Mk7_Camo_ESS_D", "UK3CB_BAF_H_Mk7_Camo_CESS_A", "UK3CB_BAF_H_Mk7_Camo_CESS_B", "UK3CB_BAF_H_Mk7_Camo_CESS_C", "UK3CB_BAF_H_Mk7_Camo_CESS_D", "UK3CB_BAF_H_Mk7_Net_A", "UK3CB_BAF_H_Mk7_Net_B", "UK3CB_BAF_H_Mk7_Net_C", "UK3CB_BAF_H_Mk7_Net_D", "UK3CB_BAF_H_Mk7_Net_ESS_A", "UK3CB_BAF_H_Mk7_Net_ESS_B", "UK3CB_BAF_H_Mk7_Net_ESS_C", "UK3CB_BAF_H_Mk7_Net_ESS_D", "UK3CB_BAF_H_Mk7_Net_CESS_A", "UK3CB_BAF_H_Mk7_Net_CESS_B", "UK3CB_BAF_H_Mk7_Net_CESS_C", "UK3CB_BAF_H_Mk7_Net_CESS_D", "UK3CB_BAF_H_Mk7_Scrim_A", "UK3CB_BAF_H_Mk7_Scrim_B", "UK3CB_BAF_H_Mk7_Scrim_C", "UK3CB_BAF_H_Mk7_Scrim_D", "UK3CB_BAF_H_Mk7_Scrim_E", "UK3CB_BAF_H_Mk7_Scrim_F", "UK3CB_BAF_H_Mk7_Scrim_ESS_A", "UK3CB_BAF_H_Mk7_Scrim_ESS_B", "UK3CB_BAF_H_Mk7_Scrim_ESS_C" ]; _availableGoggles = [ "G_Combat", "G_Lowprofile", "G_Shades_Black", "G_Shades_Blue", "G_Shades_Green", "G_Shades_Red", "G_Sport_Blackred", "G_Sport_Blackyellow", "G_Squares_Tinted", "G_Tactical_Black", "G_Tactical_Clear", "G_Bandanna_blk" ]; _availableUniforms = [ "U_B_CombatUniform_mcam", "U_B_CombatUniform_mcam_tshirt", "U_B_CombatUniform_mcam_vest", "U_B_HeliPilotCoveralls", "U_B_CTRG_1", "U_B_CTRG_2", "U_B_CTRG_3" ]; _availableVests = [ "V_BandollierB_khk", "V_BandollierB_blk", "V_PlateCarrier1_rgr", "V_PlateCarrier2_rgr", "V_PlateCarrierGL_rgr", "V_PlateCarrierSpec_rgr", "V_PlateCarrierL_CTRG", "V_PlateCarrierH_CTRG" ]; _availableBackpacks = [ "B_AssaultPack_rgr", "B_AssaultPack_mcamo", "B_Kitbag_rgr", "B_Kitbag_mcamo", "B_TacticalPack_blk", "B_TacticalPack_mcamo" ]; [_crate,_availableBackpacks,true,true] call BIS_fnc_addVirtualBackpackCargo; [_crate,_availableHeadgear +_availableGoggles + _availableUniforms + _availableVests,true,true] call BIS_fnc_addVirtualItemCargo; [_crate,_mags,true,true] call BIS_fnc_addVirtualMagazineCargo; [_crate,_guns,true,true] call BIS_fnc_addVirtualWeaponCargo; Share this post Link to post Share on other sites
jordanbache97 47 Posted August 12, 2015 Just tried that, It still gives me everything not what I put into the script Share this post Link to post Share on other sites
Jigsor 176 Posted August 12, 2015 With some help from hossus we got it to work this way. // ammo box object init field this addAction["Open Virtual Arsenal", {null = [_this] execVM "virtual_arsenal_init.sqf";}]; //virtual_arsenal_init.sqf _crate = _this select 0 select 0; _caller = _this select 0 select 1; _id = _this select 0 select 2; _crate removeAction _id; clearMagazineCargoGlobal _crate; clearWeaponCargoGlobal _crate; clearItemCargoGlobal _crate; clearBackpackCargoGlobal _crate; ["AmmoboxInit",[_crate,false,{true}]] spawn BIS_fnc_arsenal; //Lists of items to include _availableHeadgear = [ "UK3CB_BAF_H_CrewHelmet_A", "UK3CB_BAF_H_CrewHelmet_A_ESS_A", "UK3CB_BAF_H_Mk7_Camo_A", "UK3CB_BAF_H_Mk7_Camo_B", "UK3CB_BAF_H_Mk7_Camo_C", "UK3CB_BAF_H_Mk7_Camo_D", "UK3CB_BAF_H_Mk7_Camo_E", "UK3CB_BAF_H_Mk7_Camo_F", "UK3CB_BAF_H_Mk7_Camo_ESS_A", "UK3CB_BAF_H_Mk7_Camo_ESS_B", "UK3CB_BAF_H_Mk7_Camo_ESS_C", "UK3CB_BAF_H_Mk7_Camo_ESS_D", "UK3CB_BAF_H_Mk7_Camo_CESS_A", "UK3CB_BAF_H_Mk7_Camo_CESS_B", "UK3CB_BAF_H_Mk7_Camo_CESS_C", "UK3CB_BAF_H_Mk7_Camo_CESS_D", "UK3CB_BAF_H_Mk7_Net_A", "UK3CB_BAF_H_Mk7_Net_B", "UK3CB_BAF_H_Mk7_Net_C", "UK3CB_BAF_H_Mk7_Net_D", "UK3CB_BAF_H_Mk7_Net_ESS_A", "UK3CB_BAF_H_Mk7_Net_ESS_B", "UK3CB_BAF_H_Mk7_Net_ESS_C", "UK3CB_BAF_H_Mk7_Net_ESS_D", "UK3CB_BAF_H_Mk7_Net_CESS_A", "UK3CB_BAF_H_Mk7_Net_CESS_B", "UK3CB_BAF_H_Mk7_Net_CESS_C", "UK3CB_BAF_H_Mk7_Net_CESS_D", "UK3CB_BAF_H_Mk7_Scrim_A", "UK3CB_BAF_H_Mk7_Scrim_B", "UK3CB_BAF_H_Mk7_Scrim_C", "UK3CB_BAF_H_Mk7_Scrim_D", "UK3CB_BAF_H_Mk7_Scrim_E", "UK3CB_BAF_H_Mk7_Scrim_F", "UK3CB_BAF_H_Mk7_Scrim_ESS_A", "UK3CB_BAF_H_Mk7_Scrim_ESS_B", "UK3CB_BAF_H_Mk7_Scrim_ESS_C" ]; _availableGoggles = [ "G_Combat", "G_Lowprofile", "G_Shades_Black", "G_Shades_Blue", "G_Shades_Green", "G_Shades_Red", "G_Sport_Blackred", "G_Sport_Blackyellow", "G_Squares_Tinted", "G_Tactical_Black", "G_Tactical_Clear", "G_Bandanna_blk" ]; _availableUniforms = [ "U_B_CombatUniform_mcam", "U_B_CombatUniform_mcam_tshirt", "U_B_CombatUniform_mcam_vest", "U_B_HeliPilotCoveralls", "U_B_CTRG_1", "U_B_CTRG_2", "U_B_CTRG_3" ]; _availableVests = [ "V_BandollierB_khk", "V_BandollierB_blk", "V_PlateCarrier1_rgr", "V_PlateCarrier2_rgr", "V_PlateCarrierGL_rgr", "V_PlateCarrierSpec_rgr", "V_PlateCarrierL_CTRG", "V_PlateCarrierH_CTRG" ]; _availableItems = [ ]; _availableBackpacks = [ "B_AssaultPack_rgr", "B_AssaultPack_mcamo", "B_Kitbag_rgr", "B_Kitbag_mcamo", "B_TacticalPack_blk", "B_TacticalPack_mcamo" ]; _availableAttachments = [ ]; _availableMagazines = [ ]; _availableWeapons = [ ]; //Populate with predefined items and whatever is already in the crate [_crate,((backpackCargo _crate) + _availableBackpacks)] call BIS_fnc_addVirtualBackpackCargo; [_crate,((itemCargo _crate) + _availableHeadgear + _availableGoggles + _availableUniforms + _availableVests + _availableAttachments + _availableItems )] call BIS_fnc_addVirtualItemCargo; [_crate,((magazineCargo _crate) + _availableMagazines )] call BIS_fnc_addVirtualMagazineCargo; [_crate,((weaponCargo _crate) +_availableWeapons)] call BIS_fnc_addVirtualWeaponCargo; Share this post Link to post Share on other sites
jordanbache97 47 Posted August 13, 2015 Just tried it, still didnt work all of the items of the VA are still there. Share this post Link to post Share on other sites
davidoss 552 Posted August 13, 2015 It is going to be little misunderstand.Why you guys putting the AmmoboxInit line in your scripts? ["AmmoboxInit",[_crate,false,{true}]] spawn BIS_fnc_arsenal; You don't need doing this.All the functions BIS_fnc_addVirtualxxxxxxCargo have default ability to add addaction to the box.Read the wiki: BIS_fnc_addVirtualWeaponCargo Description: Add virtual weapons to an object (e.g., ammo box). Virtual items can be selected in the Arsenal. Parameter(s): 0: OBJECT - objct to which weapons will be added 1: STRING or ARRAY of STRINGs - weapon class(es) to be added 2 (Optional): BOOL - true to add weapons globally (default: false) 3 (Optional): BOOL - true to add Arsenal action (default: true) Returns: ARRAY of ARRAYs - all virtual items within the object's space in format [<items>,<weapons>,<magazines>,<backpacks>] */ If you use BIS_fnc_arsenal its overwriting your arrays. Share this post Link to post Share on other sites
jordanbache97 47 Posted August 13, 2015 Ah brilliant, thanks Share this post Link to post Share on other sites
davidoss 552 Posted August 13, 2015 One more time: This code is just working perfectly. You have only defined stuff available in Arsenal + weapons + mags from the crate: Put inside the init field off editor placed box: null = [this] execVM "crate.sqf"; crate.sqf private ["_crate", "_guns", "_mags", "_availableHeadgear", "_availableGoggles", "_availableUniforms", "_availableVests", "_availableBackpacks"]; _crate = _this select 0; _guns = ((getWeaponCargo _crate) select 0); _mags = ((getMagazineCargo _crate) select 0); _availableHeadgear = [ "UK3CB_BAF_H_CrewHelmet_A", "UK3CB_BAF_H_CrewHelmet_A_ESS_A", "UK3CB_BAF_H_Mk7_Camo_A", "UK3CB_BAF_H_Mk7_Camo_B", "UK3CB_BAF_H_Mk7_Camo_C", "UK3CB_BAF_H_Mk7_Camo_D", "UK3CB_BAF_H_Mk7_Camo_E", "UK3CB_BAF_H_Mk7_Camo_F", "UK3CB_BAF_H_Mk7_Camo_ESS_A", "UK3CB_BAF_H_Mk7_Camo_ESS_B", "UK3CB_BAF_H_Mk7_Camo_ESS_C", "UK3CB_BAF_H_Mk7_Camo_ESS_D", "UK3CB_BAF_H_Mk7_Camo_CESS_A", "UK3CB_BAF_H_Mk7_Camo_CESS_B", "UK3CB_BAF_H_Mk7_Camo_CESS_C", "UK3CB_BAF_H_Mk7_Camo_CESS_D", "UK3CB_BAF_H_Mk7_Net_A", "UK3CB_BAF_H_Mk7_Net_B", "UK3CB_BAF_H_Mk7_Net_C", "UK3CB_BAF_H_Mk7_Net_D", "UK3CB_BAF_H_Mk7_Net_ESS_A", "UK3CB_BAF_H_Mk7_Net_ESS_B", "UK3CB_BAF_H_Mk7_Net_ESS_C", "UK3CB_BAF_H_Mk7_Net_ESS_D", "UK3CB_BAF_H_Mk7_Net_CESS_A", "UK3CB_BAF_H_Mk7_Net_CESS_B", "UK3CB_BAF_H_Mk7_Net_CESS_C", "UK3CB_BAF_H_Mk7_Net_CESS_D", "UK3CB_BAF_H_Mk7_Scrim_A", "UK3CB_BAF_H_Mk7_Scrim_B", "UK3CB_BAF_H_Mk7_Scrim_C", "UK3CB_BAF_H_Mk7_Scrim_D", "UK3CB_BAF_H_Mk7_Scrim_E", "UK3CB_BAF_H_Mk7_Scrim_F", "UK3CB_BAF_H_Mk7_Scrim_ESS_A", "UK3CB_BAF_H_Mk7_Scrim_ESS_B", "UK3CB_BAF_H_Mk7_Scrim_ESS_C" ]; _availableGoggles = [ "G_Combat", "G_Lowprofile", "G_Shades_Black", "G_Shades_Blue", "G_Shades_Green", "G_Shades_Red", "G_Sport_Blackred", "G_Sport_Blackyellow", "G_Squares_Tinted", "G_Tactical_Black", "G_Tactical_Clear", "G_Bandanna_blk" ]; _availableUniforms = [ "U_B_CombatUniform_mcam", "U_B_CombatUniform_mcam_tshirt", "U_B_CombatUniform_mcam_vest", "U_B_HeliPilotCoveralls", "U_B_CTRG_1", "U_B_CTRG_2", "U_B_CTRG_3" ]; _availableVests = [ "V_BandollierB_khk", "V_BandollierB_blk", "V_PlateCarrier1_rgr", "V_PlateCarrier2_rgr", "V_PlateCarrierGL_rgr", "V_PlateCarrierSpec_rgr", "V_PlateCarrierL_CTRG", "V_PlateCarrierH_CTRG" ]; _availableBackpacks = [ "B_AssaultPack_rgr", "B_AssaultPack_mcamo", "B_Kitbag_rgr", "B_Kitbag_mcamo", "B_TacticalPack_blk", "B_TacticalPack_mcamo" ]; [_crate,_availableBackpacks,true,true] call BIS_fnc_addVirtualBackpackCargo; [_crate,_availableHeadgear +_availableGoggles + _availableUniforms + _availableVests,true,true] call BIS_fnc_addVirtualItemCargo; [_crate,_mags,true,true] call BIS_fnc_addVirtualMagazineCargo; [_crate,_guns,true,true] call BIS_fnc_addVirtualWeaponCargo; Share this post Link to post Share on other sites
killshot 5 Posted November 30, 2015 How am I able to remove the "Inventory"-action of the crate, so only the "Arsenal"-action shows up? (For post #8 script) Thanks. :) Share this post Link to post Share on other sites
stu81 45 Posted December 17, 2015 One more time: This code is just working perfectly. You have only defined stuff available in Arsenal + weapons + mags from the crate: Put inside the init field off editor placed box: null = [this] execVM "crate.sqf"; crate.sqf private ["_crate", "_guns", "_mags", "_availableHeadgear", "_availableGoggles", "_availableUniforms", "_availableVests", "_availableBackpacks"]; _crate = _this select 0; _guns = ((getWeaponCargo _crate) select 0); _mags = ((getMagazineCargo _crate) select 0); _availableHeadgear = [ "UK3CB_BAF_H_CrewHelmet_A", "UK3CB_BAF_H_CrewHelmet_A_ESS_A", "UK3CB_BAF_H_Mk7_Camo_A", "UK3CB_BAF_H_Mk7_Camo_B", "UK3CB_BAF_H_Mk7_Camo_C", "UK3CB_BAF_H_Mk7_Camo_D", "UK3CB_BAF_H_Mk7_Camo_E", "UK3CB_BAF_H_Mk7_Camo_F", "UK3CB_BAF_H_Mk7_Camo_ESS_A", "UK3CB_BAF_H_Mk7_Camo_ESS_B", "UK3CB_BAF_H_Mk7_Camo_ESS_C", "UK3CB_BAF_H_Mk7_Camo_ESS_D", "UK3CB_BAF_H_Mk7_Camo_CESS_A", "UK3CB_BAF_H_Mk7_Camo_CESS_B", "UK3CB_BAF_H_Mk7_Camo_CESS_C", "UK3CB_BAF_H_Mk7_Camo_CESS_D", "UK3CB_BAF_H_Mk7_Net_A", "UK3CB_BAF_H_Mk7_Net_B", "UK3CB_BAF_H_Mk7_Net_C", "UK3CB_BAF_H_Mk7_Net_D", "UK3CB_BAF_H_Mk7_Net_ESS_A", "UK3CB_BAF_H_Mk7_Net_ESS_B", "UK3CB_BAF_H_Mk7_Net_ESS_C", "UK3CB_BAF_H_Mk7_Net_ESS_D", "UK3CB_BAF_H_Mk7_Net_CESS_A", "UK3CB_BAF_H_Mk7_Net_CESS_B", "UK3CB_BAF_H_Mk7_Net_CESS_C", "UK3CB_BAF_H_Mk7_Net_CESS_D", "UK3CB_BAF_H_Mk7_Scrim_A", "UK3CB_BAF_H_Mk7_Scrim_B", "UK3CB_BAF_H_Mk7_Scrim_C", "UK3CB_BAF_H_Mk7_Scrim_D", "UK3CB_BAF_H_Mk7_Scrim_E", "UK3CB_BAF_H_Mk7_Scrim_F", "UK3CB_BAF_H_Mk7_Scrim_ESS_A", "UK3CB_BAF_H_Mk7_Scrim_ESS_B", "UK3CB_BAF_H_Mk7_Scrim_ESS_C" ]; _availableGoggles = [ "G_Combat", "G_Lowprofile", "G_Shades_Black", "G_Shades_Blue", "G_Shades_Green", "G_Shades_Red", "G_Sport_Blackred", "G_Sport_Blackyellow", "G_Squares_Tinted", "G_Tactical_Black", "G_Tactical_Clear", "G_Bandanna_blk" ]; _availableUniforms = [ "U_B_CombatUniform_mcam", "U_B_CombatUniform_mcam_tshirt", "U_B_CombatUniform_mcam_vest", "U_B_HeliPilotCoveralls", "U_B_CTRG_1", "U_B_CTRG_2", "U_B_CTRG_3" ]; _availableVests = [ "V_BandollierB_khk", "V_BandollierB_blk", "V_PlateCarrier1_rgr", "V_PlateCarrier2_rgr", "V_PlateCarrierGL_rgr", "V_PlateCarrierSpec_rgr", "V_PlateCarrierL_CTRG", "V_PlateCarrierH_CTRG" ]; _availableBackpacks = [ "B_AssaultPack_rgr", "B_AssaultPack_mcamo", "B_Kitbag_rgr", "B_Kitbag_mcamo", "B_TacticalPack_blk", "B_TacticalPack_mcamo" ]; [_crate,_availableBackpacks,true,true] call BIS_fnc_addVirtualBackpackCargo; [_crate,_availableHeadgear +_availableGoggles + _availableUniforms + _availableVests,true,true] call BIS_fnc_addVirtualItemCargo; [_crate,_mags,true,true] call BIS_fnc_addVirtualMagazineCargo; [_crate,_guns,true,true] call BIS_fnc_addVirtualWeaponCargo; Hi, I'm using this script of yours which works perfectly in the editor but as soon as I load it on a dedicated server it has a lot of whitelisted gear missing :( Thanks Share this post Link to post Share on other sites
davidoss 552 Posted December 17, 2015 Well i have re-developed the code for MP scenario. First of all we need a function containing all the whitelisted stuff in global variables. functions\arsenal_wht\fn_arsenal_blu.sqf: //egzample magazinesBlacklist = ["30Rnd_556x45_Stanag_Tracer_Yellow","30Rnd_556x45_Stanag_Tracer_Green"]; bable_weapons = ["LMG_mas_M240_F","LMG_mas_M249_F","LMG_mas_M249_F_d","LMG_mas_M249_F_v"]; bable_items = ["ACE_ATragMX","ACE_Altimeter","ACE_Banana","ACE_CableTie","ACE_Cellphone","ACE_Clacker","ACE_DAGR","ACE_DeadManSwitch"]; bable_bags = ["B_AA_01_weapon_F","B_AT_01_weapon_F","B_AssaultPack_Kerry","B_AssaultPack_blk"]; description.ext: class CfgFunctions { class INS { class arsenal_wht { class arsenal_blu { preInit = 1; postInit = 0; preStart = 0; recompile = 0; ext = ".sqf"; headerType = -1; }; }; }; }; scripts\west_base_crate.sqf; if (!hasInterface && !isDedicated) exitWith {}; private ["_bbasebox", "_addActionText"]; _bbasebox = _this select 0; [_bbasebox, bable_items, true, false] call BIS_fnc_addVirtualItemCargo; [_bbasebox, bable_weapons, true, false] call BIS_fnc_addVirtualWeaponCargo; [_bbasebox, bable_bags, true, false] call BIS_fnc_addVirtualBackpackCargo; [_bbasebox, ["%ALL"], true, false] call BIS_fnc_addVirtualMagazineCargo; [_bbasebox, magazinesBlacklist, true] call BIS_fnc_removeVirtualMagazineCargo; _addActionText = "<t color='#45B6EA'>Open Armoury"; ["AmmoboxInit", [_bbasebox,false,{true}, _addActionText, false]] spawn BIS_fnc_arsenal; box editor init field: if (isServer) then { clearWeaponCargoGlobal this; clearMagazineCargoGlobal this; clearItemCargoGlobal this; clearBackpackCargoGlobal this; this addItemCargoGlobal ["Alive_Tablet", 2]; this addItemCargoGlobal ["ACE_CableTie", 10]; this addItemCargoGlobal ["ACE_NVG_Gen4", 10]; this addItemCargoGlobal ["ACE_personalAidKit", 20]; this addItemCargoGlobal ["ACE_bloodIV", 50]; this addItemCargoGlobal ["ACE_EarPlugs", 10]; this addItemCargoGlobal ["ACE_fieldDressing", 50]; this addItemCargoGlobal ["ACE_epinephrine", 50]; this addItemCargoGlobal ["ACE_morphine", 50]; this addItemCargoGlobal ["ACE_Clacker", 10]; this addItemCargoGlobal ["ACE_DefusalKit", 10]; this addItemCargoGlobal ["ACE_IR_Strobe_Item", 10]; this addItemCargoGlobal ["B_UavTerminal", 10]; this addItemCargoGlobal ["G_Combat", 10]; this addItemCargoGlobal ["tf_anprc152", 20]; this addItemCargoGlobal ["Laserbatteries", 20]; this addItemCargoGlobal ["Laserdesignator", 10]; this addItemCargoGlobal ["ToolKit", 10]; this addItemCargoGlobal ["ACE_Altimeter", 10]; }; 0 = [this] execVM "scripts\west_base_crate.sqf"; Enjoy. Share this post Link to post Share on other sites
stu81 45 Posted December 19, 2015 Well i have re-developed the code for MP scenario. First of all we need a function containing all the whitelisted stuff in global variables. functions\arsenal_wht\fn_arsenal_blu.sqf: //egzamplemagazinesBlacklist = ["30Rnd_556x45_Stanag_Tracer_Yellow","30Rnd_556x45_Stanag_Tracer_Green"];bable_weapons = ["LMG_mas_M240_F","LMG_mas_M249_F","LMG_mas_M249_F_d","LMG_mas_M249_F_v"];bable_items = ["ACE_ATragMX","ACE_Altimeter","ACE_Banana","ACE_CableTie","ACE_Cellphone","ACE_Clacker","ACE_DAGR","ACE_DeadManSwitch"];bable_bags = ["B_AA_01_weapon_F","B_AT_01_weapon_F","B_AssaultPack_Kerry","B_AssaultPack_blk"];description.ext: class CfgFunctions { class INS { class arsenal_wht { class arsenal_blu { preInit = 1; postInit = 0; preStart = 0; recompile = 0; ext = ".sqf"; headerType = -1; }; }; };};scripts\west_base_crate.sqf; if (!hasInterface && !isDedicated) exitWith {};private ["_bbasebox", "_addActionText"];_bbasebox = _this select 0;[_bbasebox, bable_items, true, false] call BIS_fnc_addVirtualItemCargo;[_bbasebox, bable_weapons, true, false] call BIS_fnc_addVirtualWeaponCargo;[_bbasebox, bable_bags, true, false] call BIS_fnc_addVirtualBackpackCargo;[_bbasebox, ["%ALL"], true, false] call BIS_fnc_addVirtualMagazineCargo;[_bbasebox, magazinesBlacklist, true, false] call BIS_fnc_addVirtualMagazineBlacklist;_addActionText = "<t color='#45B6EA'>Open Armoury";["AmmoboxInit", [_bbasebox,false,{true}, _addActionText, false]] spawn BIS_fnc_arsenal;box editor init field: if (isServer) then { clearWeaponCargoGlobal this; clearMagazineCargoGlobal this; clearItemCargoGlobal this; clearBackpackCargoGlobal this; this addItemCargoGlobal ["Alive_Tablet", 2]; this addItemCargoGlobal ["ACE_CableTie", 10]; this addItemCargoGlobal ["ACE_NVG_Gen4", 10]; this addItemCargoGlobal ["ACE_personalAidKit", 20]; this addItemCargoGlobal ["ACE_bloodIV", 50]; this addItemCargoGlobal ["ACE_EarPlugs", 10]; this addItemCargoGlobal ["ACE_fieldDressing", 50]; this addItemCargoGlobal ["ACE_epinephrine", 50]; this addItemCargoGlobal ["ACE_morphine", 50]; this addItemCargoGlobal ["ACE_Clacker", 10]; this addItemCargoGlobal ["ACE_DefusalKit", 10]; this addItemCargoGlobal ["ACE_IR_Strobe_Item", 10]; this addItemCargoGlobal ["B_UavTerminal", 10]; this addItemCargoGlobal ["G_Combat", 10]; this addItemCargoGlobal ["tf_anprc152", 20]; this addItemCargoGlobal ["Laserbatteries", 20]; this addItemCargoGlobal ["Laserdesignator", 10]; this addItemCargoGlobal ["ToolKit", 10]; this addItemCargoGlobal ["ACE_Altimeter", 10]; }; 0 = [this] execVM "scripts\west_base_crate.sqf";Enjoy.Thanks, I'm confused again lol.1. At the top is that blacklist stuff that won't show in crate no matter what? 2. At the Bable part can I just add "bable_vests=" and "bable_facewear=" if I want to add goggles/uniforms etc etc? 3. When I whitelist a weapon will the ammo automatically add itself to the arsenal? :) Share this post Link to post Share on other sites
davidoss 552 Posted December 19, 2015 ammo is all - blacklistedbable_items there put all vests, uniforms, items, headgears - all in one variable Here you have my complete function magazinesBlacklist = ["I_IR_Grenade","IEDUrbanSmall_Remote_Mag","IEDLandSmall_Remote_Mag","O_IR_Grenade","dummy_end"]; bable_weapons = ["LMG_mas_M240_F","LMG_mas_M249_F","LMG_mas_M249_F_d","LMG_mas_M249_F_v","LMG_mas_M249a_F","LMG_mas_M60_F","LMG_mas_Mk200_F","LMG_mas_Mk48_F","LMG_mas_Mk48_F_d","LMG_mas_Mk48_F_v", "LMG_mas_mg3_F","arifle_mas_aa12","arifle_mas_arx","arifle_mas_arx_gl","arifle_mas_arx_l","arifle_mas_arx_l_gl","arifle_mas_asval","arifle_mas_asval_ds","arifle_mas_fal","arifle_mas_fal_m203", "arifle_mas_g3","arifle_mas_g36c","arifle_mas_g3_m203","arifle_mas_g3s","arifle_mas_g3s_m203","arifle_mas_hk416","arifle_mas_hk416_d","arifle_mas_hk416_gl","arifle_mas_hk416_gl_d", "arifle_mas_hk416_gl_v","arifle_mas_hk416_m203","arifle_mas_hk416_m203_d","arifle_mas_hk416_m203_v","arifle_mas_hk416_m203c","arifle_mas_hk416_m203c_d","arifle_mas_hk416_m203c_v","arifle_mas_hk416_v", "arifle_mas_hk416c","arifle_mas_hk416c_d","arifle_mas_hk416c_v","arifle_mas_hk417_m203c","arifle_mas_hk417_m203c_d","arifle_mas_hk417_m203c_v","arifle_mas_hk417c","arifle_mas_hk417c_d", "arifle_mas_hk417c_v","arifle_mas_l119","arifle_mas_l119_d","arifle_mas_l119_gl","arifle_mas_l119_gl_d","arifle_mas_l119_gl_v","arifle_mas_l119_m203","arifle_mas_l119_m203_d","arifle_mas_l119_m203_v", "arifle_mas_l119_v","arifle_mas_l119c","arifle_mas_l119c_d","arifle_mas_l119c_v","arifle_mas_lee","arifle_mas_m1014","arifle_mas_m14","arifle_mas_m16","arifle_mas_m16_gl","arifle_mas_m27", "arifle_mas_m27_d","arifle_mas_m27_v","arifle_mas_m27m","arifle_mas_m27m_d","arifle_mas_m27m_v","arifle_mas_m4","arifle_mas_m4_d","arifle_mas_m4_gl","arifle_mas_m4_gl_d","arifle_mas_m4_gl_v", "arifle_mas_m4_m203","arifle_mas_m4_m203_d","arifle_mas_m4_m203_v","arifle_mas_m4_m203c","arifle_mas_m4_m203c_d","arifle_mas_m4_m203c_v","arifle_mas_m4_v","arifle_mas_m4c","arifle_mas_m4c_d", "arifle_mas_m4c_v","arifle_mas_m4vlt","arifle_mas_mk16","arifle_mas_mk16_gl","arifle_mas_mk16_l","arifle_mas_mk16_l_gl","arifle_mas_mk17","arifle_mas_mk17_gl","arifle_mas_mp40","arifle_mas_mp40_o", "arifle_mas_mp5","arifle_mas_mp5SD","arifle_mas_mp5SD_ds","arifle_mas_mp5_d","arifle_mas_mp5_v","arifle_mas_mp5sd","arifle_mas_mp5sd_ds","arifle_mas_sten","hgun_mas_acp_F","hgun_mas_bhp_F", "hgun_mas_glock_F","hgun_mas_glocksf_F","hgun_mas_m9_F","hgun_mas_mp7_F","hgun_mas_mp7p_F","hgun_mas_p226_F","hgun_mas_usp_F","hgun_mas_uzi_F","srifle_mas_ebr","srifle_mas_hk417","srifle_mas_hk417_d", "srifle_mas_hk417_v","srifle_mas_lrr","srifle_mas_m107","srifle_mas_m107_d","srifle_mas_m107_v","srifle_mas_m110","srifle_mas_m24","srifle_mas_m24_d","srifle_mas_m24_v","srifle_mas_mk17s", "srifle_mas_sr25","srifle_mas_sr25_d","srifle_mas_sr25_v","mas_launch_maaws_F","mas_launch_M136_F","mas_launch_NLAW_F","mas_launch_smaw_F","mas_launch_LAW_F","mas_launch_TitanS_F","mas_launch_Metis_F", "mas_launch_pzf60_F","mas_launch_Stinger_F","launch_B_Titan_F","launch_B_Titan_short_F","arifle_mas_m16_mt","arifle_mas_m16_gl_mt","arifle_mas_m16_mh","arifle_mas_m16_gl_mh","arifle_mas_m16_mti", "arifle_mas_m16_gl_mti","Laserdesignator","Laserdesignator_mas_h","dummy_end"]; bable_items = ["ACE_ATragMX","ACE_Altimeter","ACE_Banana","ACE_CableTie","ACE_Cellphone","ACE_Clacker","ACE_DAGR","ACE_DeadManSwitch","ACE_DefusalKit","ACE_EarPlugs","ACE_Flashlight_KSF1", "ACE_Flashlight_MX991","ACE_Flashlight_XL50","ACE_HuntIR_monitor","ACE_IR_Strobe_Item","ACE_Kestrel4500","ACE_M26_Clacker","ACE_MX2A","ACE_MapTools","ACE_NVG_Gen1","ACE_NVG_Gen2","ACE_NVG_Gen4", "ACE_NVG_Wide","ACE_RangeCard","ACE_RangeTable_82mm","ACE_Sandbag_empty","ACE_SpareBarrel","ACE_SpottingScope","ACE_Tripod","ACE_UAVBattery","ACE_Vector","ACE_Yardage450","ACE_acc_pointer_green", "ACE_atropine","ACE_bloodIV","ACE_bloodIV_250","ACE_bloodIV_500","ACE_bodyBag","ACE_elasticBandage","ACE_epinephrine","ACE_fieldDressing","ACE_key_civ","ACE_key_east","ACE_key_indp","ACE_key_lockpick", "ACE_key_master","ACE_key_west","ACE_microDAGR","ACE_morphine","ACE_muzzle_mzls_338","ACE_muzzle_mzls_93mmg","ACE_muzzle_mzls_B","ACE_muzzle_mzls_H","ACE_muzzle_mzls_L","ACE_muzzle_mzls_smg_01", "ACE_muzzle_mzls_smg_02","ACE_optic_Arco_2D","ACE_optic_Arco_PIP","ACE_optic_Hamr_2D","ACE_optic_Hamr_PIP","ACE_optic_LRPS_2D","ACE_optic_LRPS_PIP","ACE_optic_MRCO_2D","ACE_optic_SOS_2D", "ACE_optic_SOS_PIP","ACE_packingBandage","ACE_personalAidKit","ACE_plasmaIV","ACE_plasmaIV_250","ACE_plasmaIV_500","ACE_quikclot","ACE_salineIV","ACE_salineIV_250","ACE_salineIV_500","ACE_surgicalKit", "ACE_tourniquet","ACE_wirecutter","ALIVE_Tablet","B_AssaultPack_mcamo","B_AssaultPack_rgr","B_Carryall_mcamo","B_Kitbag_mcamo","B_Kitbag_rgr","B_TacticalPack_blk","B_TacticalPack_mcamo","B_UavTerminal", "B_mas_mar_FieldPack_blk_DiverExp","B_mas_mar_FieldPack_blk_DiverMedic","B_mas_mar_FieldPack_blk_DiverTL","Binocular","G_Aviator","G_B_Diving","G_Balaclava_blk","G_Balaclava_combat", "G_Balaclava_lowprofile","G_Balaclava_oli","G_Bandanna_aviator","G_Bandanna_beast","G_Bandanna_blk","G_Bandanna_khk","G_Bandanna_oli","G_Bandanna_shades","G_Bandanna_sport","G_Bandanna_tan","G_Combat", "G_Diving","G_Goggles_VR","G_I_Diving","G_Lady_Blue","G_Lowprofile","G_O_Diving","G_Shades_Black","G_Shades_Blue","G_Shades_Green","G_Shades_Red","G_Spectacles","G_Spectacles_Tinted", "G_Sport_BlackWhite","G_Sport_Blackred","G_Sport_Blackyellow","G_Sport_Checkered","G_Sport_Greenblack","G_Sport_Red","G_Squares","G_Squares_Tinted","G_Tactical_Black","G_Tactical_Clear","G_mas_wpn_bala" ,"G_mas_wpn_bala_b","G_mas_wpn_bala_gog","G_mas_wpn_bala_gog_b","G_mas_wpn_bala_gog_t","G_mas_wpn_bala_mask","G_mas_wpn_bala_mask_b","G_mas_wpn_bala_mask_t","G_mas_wpn_bala_t","G_mas_wpn_gasmask", "G_mas_wpn_gog","G_mas_wpn_gog_d","G_mas_wpn_gog_g","G_mas_wpn_gog_gd","G_mas_wpn_gog_m","G_mas_wpn_gog_md","G_mas_wpn_mask","G_mas_wpn_mask_b","G_mas_wpn_shemag","G_mas_wpn_shemag_gog", "G_mas_wpn_shemag_mask","G_mas_wpn_shemag_r","G_mas_wpn_shemag_w","G_mas_wpn_wrap","G_mas_wpn_wrap_b","G_mas_wpn_wrap_c","G_mas_wpn_wrap_f","G_mas_wpn_wrap_g","G_mas_wpn_wrap_gog","G_mas_wpn_wrap_gog_b" ,"G_mas_wpn_wrap_gog_c","G_mas_wpn_wrap_gog_f","G_mas_wpn_wrap_gog_g","G_mas_wpn_wrap_gog_t","G_mas_wpn_wrap_mask","G_mas_wpn_wrap_mask_b","G_mas_wpn_wrap_mask_c","G_mas_wpn_wrap_mask_f", "G_mas_wpn_wrap_mask_g","G_mas_wpn_wrap_mask_t","G_mas_wpn_wrap_t","H_Bandanna_camo","H_Bandanna_cbr","H_Bandanna_gry","H_Bandanna_khk","H_Bandanna_khk_hs","H_Bandanna_mcamo","H_Bandanna_sand", "H_Bandanna_sgg","H_Beret_02","H_Beret_Colonel","H_Beret_blk","H_Beret_blk_POLICE","H_Beret_brn_SF","H_Beret_grn","H_Beret_grn_SF","H_Beret_red","H_Booniehat_dgtl","H_Booniehat_dirty","H_Booniehat_grn", "H_Booniehat_khk","H_Booniehat_khk_hs","H_Booniehat_mcamo","H_Booniehat_oli","H_Booniehat_tan","H_Cap_blk","H_Cap_blk_CMMG","H_Cap_blk_ION","H_Cap_brn_SPECOPS","H_Cap_grn","H_Cap_grn_BI", "H_Cap_headphones","H_Cap_khaki_specops_UK","H_Cap_oli","H_Cap_oli_hs","H_Cap_police","H_Cap_red","H_Cap_tan","H_Cap_tan_specops_US","H_Cap_usblack","H_CrewHelmetHeli_B","H_HelmetB","H_HelmetB_black", "H_HelmetB_camo","H_HelmetB_desert","H_HelmetB_grass","H_HelmetB_light","H_HelmetB_light_black","H_HelmetB_light_desert","H_HelmetB_light_grass","H_HelmetB_light_sand","H_HelmetB_light_snakeskin", "H_HelmetB_paint","H_HelmetB_plain_blk","H_HelmetB_plain_mcamo","H_HelmetB_sand","H_HelmetB_snakeskin","H_HelmetCrew_0","H_HelmetCrew_B","H_HelmetIA","H_HelmetIA_camo","H_HelmetIA_net","H_HelmetSpecB", "H_HelmetSpecB_blk","H_HelmetSpecB_paint1","H_HelmetSpecB_paint2","H_HelmetSpecB_sand","H_HelmetSpecB_snakeskin","H_MilCap_blue","H_MilCap_dgtl","H_MilCap_gry","H_MilCap_mcamo","H_PilotHelmetFighter_B", "H_PilotHelmetHeli_B","H_ShemagOpen_khk","H_ShemagOpen_tan","H_Shemag_olive","H_Shemag_olive_hs","H_Watchcap_blk","H_Watchcap_camo","H_Watchcap_cbr","H_Watchcap_khk","H_Watchcap_sgg","H_mas_82nd_beret", "H_mas_gue_HelmetCrew_O","H_mas_gue_HelmetI","H_mas_gue_HelmetO","H_mas_gue_beanie_O","H_mas_gue_boonie_I","H_mas_gue_boonie_O","H_mas_gue_cap_I","H_mas_gue_cap_O","H_mas_gue_cow_O", "H_mas_gue_headset_O","H_mas_gue_woodhead_O","H_mas_gue_woodhead_sov_O","H_mas_mar_Bandana","H_mas_mar_Bandana_h","H_mas_mar_Booniehat_des","H_mas_mar_Booniehat_rgr","H_mas_mar_Booniehat_wood", "H_mas_mar_Cap","H_mas_mar_Cap_headphones","H_mas_mar_Cap_headphones_d","H_mas_mar_Cap_headphones_v","H_mas_mar_CrewHelmetHeli_B","H_mas_mar_HelmetCrew_B","H_mas_mar_PilotHelmetHeli_B", "H_mas_mar_Woolhat","H_mas_mar_Woolhat_c","H_mas_mar_Woolhat_w","H_mas_mar_headset_b","H_mas_mar_helmet_ops_sf","H_mas_mar_helmet_ops_sf_b","H_mas_mar_helmet_ops_sf_d","H_mas_mar_helmet_ops_sf_e", "H_mas_mar_helmet_ops_sf_g","H_mas_mar_helmet_ops_sf_gog","H_mas_mar_helmet_ops_sf_gog_b","H_mas_mar_helmet_ops_sf_gog_d","H_mas_mar_helmet_ops_sf_gog_e","H_mas_mar_helmet_ops_sf_gog_g", "H_mas_mar_helmet_ops_sf_gog_v","H_mas_mar_helmet_ops_sf_gog_w","H_mas_mar_helmet_ops_sf_h","H_mas_mar_helmet_ops_sf_h_b","H_mas_mar_helmet_ops_sf_h_d","H_mas_mar_helmet_ops_sf_h_e", "H_mas_mar_helmet_ops_sf_h_g","H_mas_mar_helmet_ops_sf_h_v","H_mas_mar_helmet_ops_sf_h_w","H_mas_mar_helmet_ops_sf_v","H_mas_mar_helmet_ops_sf_w","H_mas_mar_helmetd_us","H_mas_mar_helmetdgog_us", "H_mas_mar_helmetv_us","H_mas_mar_helmetvgog_us","H_mas_mar_helmetw_us","H_mas_mar_helmetwgog_us","H_mas_mar_off","H_mas_mar_off_d","H_mas_mar_off_g","H_mas_mar_off_v","H_mas_mar_revcapheadset_b", "H_mas_mar_revcapheadset_d","H_mas_mar_woolhat_ht","H_mas_mar_woolhat_ht_w","H_mas_sfod_beret","H_mas_usd_Booniehat_mul","H_mas_usd_Booniehat_tan","H_mas_usn_Booniehat_des","H_mas_usn_Booniehat_mul", "H_mas_usn_Booniehat_rgr","H_mas_usn_Cap","H_mas_usn_Cap_headphones","H_mas_usn_Cap_headphones_d","H_mas_usn_Cap_headphones_g","H_mas_usn_Cap_headphones_v","H_mas_usn_Cap_headphones_w", "H_mas_usn_CrewHelmetHeli_B","H_mas_usn_CrewHelmet_B","H_mas_usn_MilCap_mcamo","H_mas_usn_MilCap_mcamo_d","H_mas_usn_MilCap_mcamo_v","H_mas_usn_PilotHelmetHeli_B","H_mas_usn_Woolhat", "H_mas_usn_Woolhat_c","H_mas_usn_Woolhat_w","H_mas_usn_bandana","H_mas_usn_bandana_ht","H_mas_usn_helmet_mach","H_mas_usn_helmet_mach_gog","H_mas_usn_helmet_mach_sf","H_mas_usn_helmet_mach_sf_gog", "H_mas_usn_helmet_mich_sf","H_mas_usn_helmet_mich_sf_b","H_mas_usn_helmet_mich_sf_g","H_mas_usn_helmet_mich_sf_gog","H_mas_usn_helmet_mich_sf_gog_b","H_mas_usn_helmet_mich_sf_gog_g", "H_mas_usn_helmet_mich_sf_gog_m","H_mas_usn_helmet_mich_sf_gog_w","H_mas_usn_helmet_mich_sf_h","H_mas_usn_helmet_mich_sf_h_b","H_mas_usn_helmet_mich_sf_h_g","H_mas_usn_helmet_mich_sf_h_m", "H_mas_usn_helmet_mich_sf_h_w","H_mas_usn_helmet_mich_sf_m","H_mas_usn_helmet_mich_sf_w","H_mas_usn_helmet_ops_sf","H_mas_usn_helmet_ops_sf_b","H_mas_usn_helmet_ops_sf_d","H_mas_usn_helmet_ops_sf_e", "H_mas_usn_helmet_ops_sf_g","H_mas_usn_helmet_ops_sf_gog","H_mas_usn_helmet_ops_sf_gog_b","H_mas_usn_helmet_ops_sf_gog_d","H_mas_usn_helmet_ops_sf_gog_e","H_mas_usn_helmet_ops_sf_gog_g", "H_mas_usn_helmet_ops_sf_gog_m","H_mas_usn_helmet_ops_sf_gog_v","H_mas_usn_helmet_ops_sf_gog_w","H_mas_usn_helmet_ops_sf_gog_z","H_mas_usn_helmet_ops_sf_h","H_mas_usn_helmet_ops_sf_h_b", "H_mas_usn_helmet_ops_sf_h_d","H_mas_usn_helmet_ops_sf_h_e","H_mas_usn_helmet_ops_sf_h_g","H_mas_usn_helmet_ops_sf_h_m","H_mas_usn_helmet_ops_sf_h_v","H_mas_usn_helmet_ops_sf_h_w", "H_mas_usn_helmet_ops_sf_h_z","H_mas_usn_helmet_ops_sf_m","H_mas_usn_helmet_ops_sf_v","H_mas_usn_helmet_ops_sf_w","H_mas_usn_helmet_ops_sf_z","H_mas_usn_helmet_pro","H_mas_usn_helmet_pro_gog", "H_mas_usn_off","H_mas_usn_off_d","H_mas_usn_off_g","H_mas_usn_off_v","H_mas_usn_revcapheadset_b","H_mas_usn_revcapheadset_v","H_mas_usn_woolhat_ht","H_mas_usn_woolhat_ht_w","H_mas_usr_Booniehat_des", "H_mas_usr_Booniehat_rgr","H_mas_usr_beret","H_mas_usr_off","H_mas_usr_off_d","H_mas_usr_off_g","H_mas_usr_off_v","ItemCompass","ItemGPS","ItemMap","ItemRadio","ItemWatch","Laserbatteries", "Laserdesignator","Laserdesignator_mas_h","MineDetector","NVGoggles","NVGoggles_INDEP","NVGoggles_OPFOR","NVGoggles_mas_18","NVGoggles_mas_18h","NVGoggles_mas_h","Rangefinder","Rangefinder_mas_h", "ToolKit","U_BG_Guerilla2_1","U_BG_Guerilla2_2","U_BG_Guerilla2_3","U_BG_Guerilla3_1","U_BG_Guerrilla_6_1","U_B_CTRG_1","U_B_CTRG_2","U_B_CTRG_3","U_B_CombatUniform_mcam","U_B_CombatUniform_mcam_tshirt" ,"U_B_CombatUniform_mcam_vest","U_B_CombatUniform_mcam_worn","U_B_CombatUniform_sgg","U_B_CombatUniform_sgg_tshirt","U_B_CombatUniform_sgg_vest","U_B_CombatUniform_wdl","U_B_CombatUniform_wdl_tshirt", "U_B_CombatUniform_wdl_vest","U_B_FullGhillie_ard","U_B_FullGhillie_lsh","U_B_FullGhillie_sard","U_B_GhillieSuit","U_B_HeliPilotCoveralls","U_B_PilotCoveralls","U_B_SpecopsUniform_sgg","U_B_Wetsuit", "U_B_survival_uniform","U_I_G_Story_Protagonist_F","U_mas_gue_B_rebel1","U_mas_gue_B_rebel10","U_mas_gue_B_rebel11","U_mas_gue_B_rebel2","U_mas_gue_B_rebel3","U_mas_gue_B_rebel4","U_mas_gue_B_rebel5", "U_mas_gue_B_rebel6","U_mas_gue_B_rebel7","U_mas_gue_B_rebel8","U_mas_gue_B_rebel9","U_mas_gue_I_rebel1","U_mas_gue_I_rebel10","U_mas_gue_I_rebel11","U_mas_gue_I_rebel2","U_mas_gue_I_rebel3", "U_mas_gue_I_rebel4","U_mas_gue_I_rebel5","U_mas_gue_I_rebel6","U_mas_gue_I_rebel7","U_mas_gue_I_rebel8","U_mas_gue_I_rebel9","U_mas_gue_O_rebel1","U_mas_gue_O_rebel10","U_mas_gue_O_rebel11", "U_mas_gue_O_rebel2","U_mas_gue_O_rebel3","U_mas_gue_O_rebel4","U_mas_gue_O_rebel5","U_mas_gue_O_rebel6","U_mas_gue_O_rebel7","U_mas_gue_O_rebel8","U_mas_gue_O_rebel9","U_mas_mar_B_CombatUniform_des", "U_mas_mar_B_CombatUniform_des_tshirt","U_mas_mar_B_CombatUniform_des_vest","U_mas_mar_B_CombatUniform_sage","U_mas_mar_B_CombatUniform_sage_tshirt","U_mas_mar_B_CombatUniform_sage_vest", "U_mas_mar_B_CombatUniform_veg","U_mas_mar_B_CombatUniform_veg_tshirt","U_mas_mar_B_CombatUniform_veg_vest","U_mas_mar_B_CombatUniform_wood","U_mas_mar_B_CombatUniform_wood_tshirt", "U_mas_mar_B_CombatUniform_wood_vest","U_mas_mar_B_CombatUniform_wood_vest1","U_mas_mar_B_CombatUniform_wood_vest2","U_mas_mar_B_CombatUniform_wood_vest3","U_mas_mar_B_CombatUniform_wood_vest4", "U_mas_mar_B_GhillieSuit","U_mas_mar_B_GhillieSuit_d","U_mas_mar_B_GhillieSuit_v","U_mas_mar_B_GhillieSuit_w","U_mas_mar_B_IndUniform1_d","U_mas_mar_B_IndUniform1_o","U_mas_mar_B_IndUniform1_v", "U_mas_mar_B_IndUniform2_d","U_mas_mar_B_IndUniform2_o","U_mas_mar_B_IndUniform2_v","U_mas_mar_B_MAR","U_mas_mar_B_Wetsuit","U_mas_mar_B_nbc","U_mas_mar_B_pilot","U_mas_mar_B_wint","U_mas_mar_B_wint2", "U_mas_sfod_B_CombatUniform_des","U_mas_sfod_B_CombatUniform_des_tshirt","U_mas_sfod_B_CombatUniform_des_vest","U_mas_sfod_B_CombatUniform_des_vest1","U_mas_sfod_B_CombatUniform_des_vest2", "U_mas_sfod_B_CombatUniform_wood","U_mas_sfod_B_CombatUniform_wood_tshirt","U_mas_sfod_B_CombatUniform_wood_vest","U_mas_sfod_B_CombatUniform_wood_vest1","U_mas_sfod_B_CombatUniform_wood_vest2", "U_mas_sfod_B_CombatUniform_wood_vest3","U_mas_sfod_B_CombatUniform_wood_vest4","U_mas_usd_B_CombatUniform_mcam","U_mas_usd_B_CombatUniform_mcam_tshirt","U_mas_usd_B_CombatUniform_mcam_vest", "U_mas_usd_B_CombatUniform_mcam_vest1","U_mas_usd_B_founiform10_o","U_mas_usd_B_founiform11_o","U_mas_usd_B_founiform1_o","U_mas_usd_B_founiform2_o","U_mas_usd_B_founiform3_o","U_mas_usd_B_founiform4_o" ,"U_mas_usd_B_founiform5_o","U_mas_usd_B_founiform6_o","U_mas_usd_B_founiform7_o","U_mas_usd_B_founiform8_o","U_mas_usd_B_founiform9_o","U_mas_usn_B_CombatUniform_des", "U_mas_usn_B_CombatUniform_des_tshirt","U_mas_usn_B_CombatUniform_des_vest","U_mas_usn_B_CombatUniform_des_vest1","U_mas_usn_B_CombatUniform_des_vest2","U_mas_usn_B_CombatUniform_fbi", "U_mas_usn_B_CombatUniform_mcam","U_mas_usn_B_CombatUniform_mcam_tshirt","U_mas_usn_B_CombatUniform_mcam_vest","U_mas_usn_B_CombatUniform_mcam_vest1","U_mas_usn_B_CombatUniform_mcam_vest2", "U_mas_usn_B_CombatUniform_mcam_vest3","U_mas_usn_B_CombatUniform_mcam_vest4","U_mas_usn_B_CombatUniform_sage","U_mas_usn_B_CombatUniform_sage_tshirt","U_mas_usn_B_CombatUniform_sage_vest", "U_mas_usn_B_CombatUniform_swat","U_mas_usn_B_CombatUniform_veg","U_mas_usn_B_CombatUniform_veg_tshirt","U_mas_usn_B_CombatUniform_veg_vest","U_mas_usn_B_CombatUniform_veg_vest1", "U_mas_usn_B_CombatUniform_veg_vest2","U_mas_usn_B_CombatUniform_wood","U_mas_usn_B_CombatUniform_wood_tshirt","U_mas_usn_B_CombatUniform_wood_vest","U_mas_usn_B_DEV","U_mas_usn_B_GhillieSuit", "U_mas_usn_B_GhillieSuit_d","U_mas_usn_B_GhillieSuit_v","U_mas_usn_B_GhillieSuit_w","U_mas_usn_B_Wetsuit","U_mas_usn_B_pilot","U_mas_usn_B_wint","U_mas_usn_B_wint2","U_mas_usr_B_IndUniform1_a", "U_mas_usr_B_IndUniform1_d","U_mas_usr_B_IndUniform1_o","U_mas_usr_B_IndUniform1_v","U_mas_usr_B_IndUniform2_a","U_mas_usr_B_IndUniform2_d","U_mas_usr_B_IndUniform2_o","U_mas_usr_B_IndUniform2_v", "V_BandollierB_blk","V_BandollierB_cbr","V_BandollierB_khk","V_BandollierB_oli","V_BandollierB_rgr","V_Chestrig_blk","V_Chestrig_khk","V_Chestrig_oli","V_Chestrig_rgr","V_PlateCarrier1_blk", "V_PlateCarrier1_rgr","V_PlateCarrier2_rgr","V_PlateCarrier3_rgr","V_PlateCarrierGL_blk","V_PlateCarrierGL_mtp","V_PlateCarrierGL_rgr","V_PlateCarrierH_CTRG","V_PlateCarrierIA1_dgtl", "V_PlateCarrierIA2_dgtl","V_PlateCarrierL_CTRG","V_PlateCarrierSpec_blk","V_PlateCarrierSpec_mtp","V_PlateCarrierSpec_rgr","V_PlateCarrier_Kerry","V_Rangemaster_belt","V_RebreatherB","V_TacVestCamo_khk" ,"V_TacVestIR_blk","V_TacVest_blk","V_TacVest_blk_POLICE","V_TacVest_brn","V_TacVest_camo","V_TacVest_khk","V_TacVest_oli","V_mas_gue_Sovest","V_mas_gue_Sovest_lite","V_mas_gue_Sovest_she", "V_mas_gue_Sovest_she_lite","V_mas_gue_alice_belt","V_mas_gue_alice_belt_she","V_mas_gue_alice_webb","V_mas_gue_alice_webb2","V_mas_gue_alice_webb2_she","V_mas_gue_alice_webb_she","V_mas_gue_ind_belt", "V_mas_gue_ind_belt_she","V_mas_gue_ind_chicom","V_mas_gue_ind_chicom_she","V_mas_gue_ind_webb","V_mas_gue_ind_webb_she","V_mas_gue_ind_webbmg","V_mas_gue_ind_webbmg_she","V_mas_gue_low_belt", "V_mas_gue_low_belt_she","V_mas_gue_sov_belt","V_mas_gue_sov_belt_she","V_mas_mar_BandollierB_rgr","V_mas_mar_BandollierB_rgr_d","V_mas_mar_BandollierB_rgr_g","V_mas_mar_ChestrigB_rgr", "V_mas_mar_ChestrigB_rgr_d","V_mas_mar_ChestrigB_rgr_g","V_mas_mar_ChestrigB_rgr_w","V_mas_mar_PlateCarrier1_rgr","V_mas_mar_PlateCarrier1_rgr_d","V_mas_mar_PlateCarrier1_rgr_g", "V_mas_mar_PlateCarrier1_rgr_w","V_mas_mar_PlateCarrier2_rgr","V_mas_mar_PlateCarrier2_rgr_d","V_mas_mar_PlateCarrier2_rgr_g","V_mas_mar_PlateCarrierGL_rgr","V_mas_mar_PlateCarrierGL_rgr_d", "V_mas_mar_PlateCarrierGL_rgr_g","V_mas_mar_Rangemaster_belt","V_mas_mar_Rangemaster_belt_d","V_mas_mar_Rangemaster_belt_g","V_mas_usd_PlateCarrier1_rgr","V_mas_usn_BandollierB_rgr", "V_mas_usn_BandollierB_rgr_d","V_mas_usn_BandollierB_rgr_g","V_mas_usn_BandollierB_rgr_v","V_mas_usn_ChestrigB_rgr","V_mas_usn_ChestrigB_rgr_d","V_mas_usn_ChestrigB_rgr_g","V_mas_usn_ChestrigB_rgr_v", "V_mas_usn_ChestrigB_rgr_w","V_mas_usn_PlateCarrier1_rgr","V_mas_usn_PlateCarrier1_rgr_d","V_mas_usn_PlateCarrier1_rgr_g","V_mas_usn_PlateCarrier1_rgr_v","V_mas_usn_PlateCarrier1_rgr_w", "V_mas_usn_PlateCarrier2_rgr","V_mas_usn_PlateCarrier2_rgr_d","V_mas_usn_PlateCarrier2_rgr_g","V_mas_usn_PlateCarrier2_rgr_v","V_mas_usn_PlateCarrierGL_rgr","V_mas_usn_PlateCarrierGL_rgr_d", "V_mas_usn_PlateCarrierGL_rgr_g","V_mas_usn_PlateCarrierGL_rgr_v","V_mas_usn_Rangemaster_belt","V_mas_usn_Rangemaster_belt_d","V_mas_usn_Rangemaster_belt_g","V_mas_usn_Rangemaster_belt_v", "V_mas_usn_TacVest_fbi","V_mas_usn_TacVest_g","V_mas_usn_TacVest_p","V_mas_usn_TacVest_swat","V_mas_usr_BandollierB_rgr","V_mas_usr_BandollierB_rgr_d","V_mas_usr_BandollierB_rgr_g", "V_mas_usr_BandollierB_rgr_m","V_mas_usr_ChestrigB_rgr","V_mas_usr_ChestrigB_rgr_d","V_mas_usr_ChestrigB_rgr_g","V_mas_usr_PlateCarrier1_rgr","V_mas_usr_PlateCarrier1_rgr_d", "V_mas_usr_PlateCarrier1_rgr_fbi","V_mas_usr_PlateCarrier1_rgr_g","V_mas_usr_PlateCarrier1_rgr_m","V_mas_usr_PlateCarrier1_rgr_swat","V_mas_usr_PlateCarrier2_rgr","V_mas_usr_PlateCarrier2_rgr_d", "V_mas_usr_PlateCarrier2_rgr_g","V_mas_usr_PlateCarrier2_rgr_m","V_mas_usr_PlateCarrierGL_rgr","V_mas_usr_PlateCarrierGL_rgr_d","V_mas_usr_PlateCarrierGL_rgr_g","V_mas_usr_Rangemaster_belt", "V_mas_usr_Rangemaster_belt_d","V_mas_usr_Rangemaster_belt_g","acc_flashlight","acc_pointer_IR","bipod_01_F_blk","bipod_01_F_mtp","bipod_01_F_snd","bipod_02_F_blk","bipod_02_F_hex","bipod_02_F_tan", "bipod_03_F_blk","bipod_03_F_oli","muzzle_mas_snds_AK","muzzle_mas_snds_C","muzzle_mas_snds_KSVK","muzzle_mas_snds_L","muzzle_mas_snds_LM","muzzle_mas_snds_M","muzzle_mas_snds_MP5SD6", "muzzle_mas_snds_MP7","muzzle_mas_snds_Mc","muzzle_mas_snds_SH","muzzle_mas_snds_SHc","muzzle_mas_snds_SM","muzzle_mas_snds_SMc","muzzle_mas_snds_SV","muzzle_mas_snds_SVD","muzzle_mas_snds_SVc", "muzzle_snds_338_black","muzzle_snds_338_green","muzzle_snds_338_sand","muzzle_snds_93mmg","muzzle_snds_93mmg_tan","muzzle_snds_B","muzzle_snds_H","muzzle_snds_H_MG","muzzle_snds_H_SW","muzzle_snds_L", "muzzle_snds_M","muzzle_snds_acp","optic_ACO_grn","optic_ACO_grn_smg","optic_Aco","optic_Aco_smg","optic_Arco","optic_DMS","optic_Hamr","optic_Holosight","optic_Holosight_smg","optic_LRPS","optic_MRCO", "optic_MRD","optic_NVS","optic_Nightstalker","optic_SOS","optic_Yorris","optic_mas_ACO_grn_camo","optic_mas_Aco_camo","optic_mas_Arco_blk","optic_mas_Arco_camo","optic_mas_DMS","optic_mas_DMS_c", "optic_mas_Hamr_camo","optic_mas_Holosight_blk","optic_mas_Holosight_camo","optic_mas_LRPS" ,"optic_mas_MRCO_camo","optic_mas_MRD","optic_mas_PSO","optic_mas_PSO_c","optic_mas_PSO_day", "optic_mas_PSO_eo","optic_mas_PSO_eo_c","optic_mas_PSO_kv","optic_mas_PSO_kv_c","optic_mas_PSO_nv","optic_mas_PSO_nv_c","optic_mas_PSO_nv_day","optic_mas_PSO_nv_eo","optic_mas_PSO_nv_eo_c", "optic_mas_acog","optic_mas_acog_c","optic_mas_acog_eo","optic_mas_acog_eo_c","optic_mas_acog_rd","optic_mas_acog_rd_c","optic_mas_aim","optic_mas_aim_c","optic_mas_goshawk","optic_mas_handle", "optic_mas_kobra","optic_mas_kobra_c" ,"optic_mas_nspu","optic_mas_term","optic_mas_zeiss","optic_mas_zeiss_c","optic_mas_zeiss_eo","optic_mas_zeiss_eo_c","optic_tws","optic_tws_mg","tf_anprc152", "tf_microdagr","tf_rf7800str","dummy_end"]; bable_bags = ["B_AA_01_weapon_F","B_AT_01_weapon_F","B_AssaultPack_Kerry","B_AssaultPack_blk","B_AssaultPack_cbr","B_AssaultPack_khk","B_AssaultPack_mcamo","B_AssaultPack_rgr","B_AssaultPack_sgg", "B_Carryall_cbr","B_Carryall_khk","B_Carryall_mcamo","B_Carryall_oli","B_GMG_01_A_high_weapon_F","B_GMG_01_A_weapon_F","B_GMG_01_high_weapon_F","B_GMG_01_weapon_F","B_HMG_01_A_high_weapon_F", "B_HMG_01_A_weapon_F","B_HMG_01_high_weapon_F","B_HMG_01_support_F","B_HMG_01_support_high_F","B_HMG_01_weapon_F","B_Kitbag_cbr","B_Kitbag_mcamo","B_Kitbag_rgr","B_Kitbag_sgg","B_Mortar_01_support_F", "B_Mortar_01_weapon_F","B_Parachute","B_Static_Designator_01_weapon_F","B_TacticalPack_blk","B_TacticalPack_mcamo","B_TacticalPack_oli","B_TacticalPack_rgr","B_UAV_01_backpack_F", "B_mas_AssaultPack_black","B_mas_AssaultPack_black_AA","B_mas_AssaultPack_black_AT","B_mas_AssaultPack_black_AT4","B_mas_AssaultPack_black_ATM","B_mas_AssaultPack_black_MAAWS", "B_mas_AssaultPack_black_Medic","B_mas_AssaultPack_black_Repair","B_mas_AssaultPack_black_SMAW","B_mas_AssaultPack_black_m72","B_mas_AssaultPack_des","B_mas_AssaultPack_des_AA", "B_mas_AssaultPack_des_AT","B_mas_AssaultPack_des_AT4","B_mas_AssaultPack_des_ATM","B_mas_AssaultPack_des_MAAWS","B_mas_AssaultPack_des_Medic","B_mas_AssaultPack_des_Repair","B_mas_AssaultPack_des_SMAW" ,"B_mas_AssaultPack_des_m72","B_mas_AssaultPack_mul","B_mas_AssaultPack_mul_AA","B_mas_AssaultPack_mul_AT","B_mas_AssaultPack_mul_AT4","B_mas_AssaultPack_mul_ATM","B_mas_AssaultPack_mul_MAAWS", "B_mas_AssaultPack_mul_Medic","B_mas_AssaultPack_mul_Repair","B_mas_AssaultPack_mul_SMAW","B_mas_AssaultPack_mul_ammo","B_mas_AssaultPack_mul_ammo_MG","B_mas_AssaultPack_mul_m72","B_mas_AssaultPack_rng" ,"B_mas_AssaultPack_rng_AA","B_mas_AssaultPack_rng_AT","B_mas_AssaultPack_rng_AT4","B_mas_AssaultPack_rng_ATM","B_mas_AssaultPack_rng_MAAWS","B_mas_AssaultPack_rng_Medic","B_mas_AssaultPack_rng_Repair", "B_mas_AssaultPack_rng_SMAW","B_mas_AssaultPack_rng_m72","B_mas_AssaultPack_wint","B_mas_AssaultPack_wint_AA","B_mas_AssaultPack_wint_AT","B_mas_AssaultPack_wint_AT4","B_mas_AssaultPack_wint_ATM", "B_mas_AssaultPack_wint_MAAWS","B_mas_AssaultPack_wint_Medic","B_mas_AssaultPack_wint_Repair","B_mas_AssaultPack_wint_SMAW","B_mas_AssaultPack_wint_m72","B_mas_Bergen_black","B_mas_Bergen_black_Exp", "B_mas_Bergen_des","B_mas_Bergen_des_Exp","B_mas_Bergen_mul","B_mas_Bergen_mul_Exp","B_mas_Bergen_rng","B_mas_Bergen_rng_Exp","B_mas_Bergen_wint","B_mas_Bergen_wint_Exp","B_mas_Kitbag_black", "B_mas_Kitbag_des","B_mas_Kitbag_mul","B_mas_Kitbag_rng","B_mas_Kitbag_wint","B_mas_m_Bergen_acr","B_mas_m_Bergen_acr_c","B_mas_m_Bergen_acr_g","B_mas_m_Bergen_acr_w","B_mas_m_Bergen_al", "B_mas_m_Bergen_rpg","B_mas_m_Bergen_rpg_b","B_mas_m_Bergen_us","B_mas_m_Bergen_us_b","B_mas_m_Bergen_us_g","B_mas_m_Bergen_us_m","B_mas_m_Bergen_us_w","B_mas_mar_FieldPack_blk_DiverExp", "B_mas_mar_FieldPack_blk_DiverMedic","B_mas_mar_FieldPack_blk_DiverTL","B_mas_usn_FieldPack_blk_DiverExp","B_mas_usn_FieldPack_blk_DiverTL","B_mas_usr_FieldPack_blk_DiverMedic", "O_mas_AssaultPack_blk_AA","O_mas_AssaultPack_blk_AT","O_mas_AssaultPack_blk_ATM","O_mas_AssaultPack_blk_Medic","O_mas_AssaultPack_blk_RPG18","O_mas_AssaultPack_blk_RPG7","O_mas_AssaultPack_blk_Repair", "O_mas_AssaultPack_blk_met","O_mas_AssaultPack_flo_AA","O_mas_AssaultPack_flo_AT","O_mas_AssaultPack_flo_ATM","O_mas_AssaultPack_flo_Medic","O_mas_AssaultPack_flo_Pzf60","O_mas_AssaultPack_flo_RPG18", "O_mas_AssaultPack_flo_RPG7","O_mas_AssaultPack_flo_Repair","O_mas_AssaultPack_flo_met","O_mas_AssaultPack_guerr_M79","O_mas_AssaultPack_guerr_Repair","O_mas_AssaultPack_rtan_AA", "O_mas_AssaultPack_rtan_AT","O_mas_AssaultPack_rtan_ATM","O_mas_AssaultPack_rtan_Medic","O_mas_AssaultPack_rtan_RPG18","O_mas_AssaultPack_rtan_RPG7","O_mas_AssaultPack_rtan_Repair", "O_mas_AssaultPack_rtan_met","O_mas_Bergen_blk","O_mas_Bergen_blk_Exp","O_mas_Bergen_flo","O_mas_Bergen_flo_AAA","O_mas_Bergen_flo_AAT","O_mas_Bergen_flo_Exp","O_mas_Bergen_flo_ammo", "O_mas_Bergen_flo_ammo_MG","O_mas_Bergen_rtan","O_mas_Bergen_rtan_AAA","O_mas_Bergen_rtan_AAT","O_mas_Bergen_rtan_Exp","O_mas_Bergen_rtan_ammo","O_mas_Bergen_rtan_ammo_MG","tf_anarc210","tf_rt1523g", "tf_rt1523g_big","tf_rt1523g_big_bwmod","tf_rt1523g_big_bwmod_tropen","tf_rt1523g_big_rhs","tf_rt1523g_black","tf_rt1523g_bwmod","tf_rt1523g_fabric","tf_rt1523g_green","tf_rt1523g_rhs","tf_rt1523g_sage" ,"dummy_end"]; And for the record: 1. Do not qoute post right next to your one Keep the forum clean Share this post Link to post Share on other sites
stu81 45 Posted December 20, 2015 Sweet=lifesaver :) Will test later...... I'm sick of people playing dress up in my missions so this is my answer to combat it :) Share this post Link to post Share on other sites
stu81 45 Posted December 21, 2015 Can confirm it works great :) Thanks again! Share this post Link to post Share on other sites
stu81 45 Posted January 3, 2016 @Davidoss, Got the whitelistings working perfectly :) I'm trying to blacklist ammo types and ir grenades etc (Vietnam era) working but any class names I put in the magazine part at top still shows up in the arsenal. Any more advise for me? Thanks Share this post Link to post Share on other sites
davidoss 552 Posted January 4, 2016 My bad. Try this one because there should be only one boolean (true for remove globally) passed to BIS_fnc_removeVirtualMagazineCargo if (!hasInterface && !isDedicated) exitWith {}; private ["_bbasebox", "_addActionText"]; _bbasebox = _this select 0; [_bbasebox, bable_items, true, false] call BIS_fnc_addVirtualItemCargo; [_bbasebox, bable_weapons, true, false] call BIS_fnc_addVirtualWeaponCargo; [_bbasebox, bable_bags, true, false] call BIS_fnc_addVirtualBackpackCargo; [_bbasebox, ["%ALL"], true, false] call BIS_fnc_addVirtualMagazineCargo; [_bbasebox, magazinesBlacklist, true] call BIS_fnc_removeVirtualMagazineCargo; _addActionText = "<t color='#45B6EA'>Open Armoury"; ["AmmoboxInit", [_bbasebox,false,{true}, _addActionText, false]] spawn BIS_fnc_arsenal; Share this post Link to post Share on other sites
stu81 45 Posted January 4, 2016 Thanks, where do I put this code? At the top of the functions sqf? Share this post Link to post Share on other sites
davidoss 552 Posted January 4, 2016 this is in west_base_crate.sqf; Share this post Link to post Share on other sites
Azza FHI 50 Posted January 4, 2016 Just thought i would post the method that we use for custom arsenal boxes. Im not the best at scripting, but i was tought to avoid using editor object inits where possible as it will fire on every client connection. Even with if (isServer) it is just not needed for something as simple as this. no need for description.ext entries, just execvm on server and thats it... initserver.sqf execvm "gear\virtual_ammoboxes\Standard.sqf"; standard.sqf // Check if box1 exists if (isNil "box1") exitWith { }; [Box1, [ // ==================== ITEMS ===================== // Goggles "rhs_googles_clear", "rhs_googles_yellow", "rhs_googles_orange", "rhs_googles_black", // Facewear "", // Headgear "", "rhsusf_ach_bare", "rhsusf_ach_bare_des", "rhsusf_ach_bare_tan", // Uniforms & Vests "", // Suppressors "rhs_acc_tgpa", "rhs_acc_pkas", "rhs_acc_dtk4screws", "rhsusf_acc_rotex5_grey", "rhsusf_acc_rotex5_tan", "rhsusf_acc_SR25S", "rhsusf_acc_M2010S", "muzzle_snds_M", "SMA_supp2btanSCAR_556", "SMA_supp2bSCAR_556", "SMA_spSCARtan_762", "SMA_spSCAR_762", "SMA_supptan_762", "SMA_supp_762", "SMA_supp2btan_556", "SMA_supp1tan_556", "SMA_supp1b_556", "SMA_Silencer_556", "SMA_supp1BB_556", "SMA_supp1BOD_556", "SMA_supp1BT_556", "SMA_supp1Bwht_556", "SMA_supp1TB_556", "SMA_supp1TOD_556", "SMA_supp1TT_556", "SMA_supp1TW_556", "SMA_supp2BOD_556", "SMA_supp2BT_556", "SMA_supp2BW_556", "SMA_supp2T_556", "SMA_supp2TB_556", "SMA_supp2TOD_556", "SMA_supp2TWH_556", "SMA_supp2smaB_556", "SMA_supp2smaT_556", "sma_gemtech_one_blk", "RH_gemtech9", "RH_A26", "RH_suppr9", "RH_aacusp", "RH_gemtech45", "RH_osprey", "RH_fhusp", "RH_x2", "RH_m6x", "RH_x300", "RH_m9qd", "RH_muzisd", "hlc_muzzle_snds_g3", "hlc_muzzle_snds_fal", "hlc_muzzle_snds_AUG", // Scopes - Modified for less zoom "rhsusf_acc_compm4", // "optic_Arco", // "optic_mrco", // "optic_hamr", // "optic_DMS", // "optic_SOS", "SMA_eotech552", "SMA_eotech552_3XDOWN", "SMA_eotech552_3XDOWN_des", "SMA_eotech552_3XDOWN_wdl", "RH_compm4s", "RH_compm2", "RH_compm2l", "RH_t1", "RH_reflex", // "RH_m3lr", // "RH_ta01nsn", // "RH_ta31rco", // "RH_ta31rmr", // "RH_ta01nsn_tan", // "RH_ta31rco_tan", // "RH_ta31rmr_tan", // "RH_c79", // "RH_m145", "RH_barska_rds", "RH_cmore", "RH_LTdocter", "RH_LTdocterl", "RH_zpoint", // Bipods "rhsusf_acc_harris_bipod", "bipod_01_F_blk", "SMA_Gripod_01", // Lasers & Flashlights "acc_pointer_IR", "rhsusf_acc_anpeq15", "PEQ15_A3_Top", "SMA_ANPEQ15_TAN", "SMA_ANPEQ15_BLK", "SMA_SFPEQ_HKTOP_BLK", "SMA_SFPEQ_HKTOP_TAN", "rhs_acc_2dpZenit", "acc_flashlight", "SMA_SFFL_BLK", "SMA_SFFL_TAN", // General "rhsusf_ANPVS_14", "itemradio", "itemmap", "itemcompass", "itemwatch", "ACE_Vector", "ACE_DefusalKit", "ACE_Clacker", "ACE_Altimeter", "ACE_UAVBattery", "ACE_wirecutter", "ACE_key_lockpick", "ACE_IR_Strobe_Item", "B_UAVTerminal", // Meds 'ace_fieldDressing', "ACE_elasticBandage", 'ace_tourniquet', 'ace_packingbandage' ], true] call BIS_fnc_addVirtualItemCargo; [Box1, [ // ==================== WEAPONS ===================== // Launchers "rhs_weap_M136", "rhs_weap_smaw_green", "rhs_weap_smaw", "rhs_weap_fim92", // ===================== RHS ======================== "rhs_weap_m14ebrri", "rhs_weap_m4a1_grip", "rhs_m4a1_m320", "rhs_weap_sr25_ec", "rhs_weap_mk18", "rhs_weap_mk18_m320", "rhs_weap_m4a1_blockII_M203", "rhs_weap_m4a1_blockII", "rhs_weap_m27iar", "rhs_weap_ak103_npz", "rhs_weap_ak74m_desert_npz", // ===================== SMA ======================== "SMA_MK16", "SMA_Mk17", "SMA_Mk16_black", "SMA_Mk17_black", "SMA_MK16_EGLM_black", "SMA_MK17_EGLM_black", "SMA_Mk16_EGLM", "SMA_Mk17_EGLM", "SMA_HK416vfg", "SMA_HK416GL", "SMA_HK416CUSTOMafg", "SMA_HK417vfg", "SMA_HK417_tanvfg", "SMA_HK417_16in_afg", "SMA_HK417_16in_afg_tan", "SMA_ACRREMMOE", "SMA_ACRREMMOEblk", "SMA_ACRMOE_Blk", "SMA_ACRMOE", "sma_minimi_mk3_762tlb", "sma_minimi_mk3_762tsb", // ===================== HLC ======================== "hlc_rifle_g3ka4", "hlc_rifle_g3a3ris", "hlc_rifle_falosw", "hlc_rifle_augsr_b", "hlc_rifle_augsr_t", "hlc_rifle_auga3_GL_BL", "hlc_rifle_auga3", // =================== Sidearms ===================== "rhs_weap_M320", "rhsusf_weap_m1911a1", "RH_deagle", "RH_deagles", "RH_deaglem", "RH_cz75", "RH_sw659", "RH_usp", "RH_m1911", "RH_kimber", "RH_kimber_nw", "RH_m9", "RH_m9c", "RH_g18", "RH_g17", "RH_muzi" ], true] call BIS_fnc_addVirtualweaponCargo; [Box1, [ // =================== MAGAZINES ===================== // =================== RHS ===================== "rhs_mag_30Rnd_556x45_Mk262_Stanag", "rhs_mag_30Rnd_556x45_Mk318_Stanag", "rhs_mag_30Rnd_556x45_M855A1_Stanag", "rhsusf_100Rnd_556x45_soft_pouch", "rhsusf_5Rnd_300winmag_xm2010", "rhsusf_20Rnd_762x51_m118_special_Mag", "rhsusf_mag_7x45acp_MHP", "rhs_30Rnd_545x39_AK", "rhs_30Rnd_762x39mm", "rhs_m136_hedp_mag", "rhs_m136_mag", "rhs_mag_smaw_HEAA", "rhs_mag_smaw_HEDP", "rhs_mag_smaw_SR", "rhs_fim92_mag", // =================== HLC ===================== "hlc_20rnd_762x51_b_G3", "hlc_20Rnd_762x51_B_fal", "hlc_30Rnd_556x45_B_AUG", // =================== SMA ===================== "SMA_20Rnd_762x51mm_M80A1_EPR", "SMA_20Rnd_762x51mm_M80A1_EPR_Tracer", "SMA_20Rnd_762x51mm_M80A1_EPR_IR", "SMA_20Rnd_762x51mm_Mk316_Mod_0_Special_Long_Range", "SMA_20Rnd_762x51mm_Mk316_Mod_0_Special_Long_Range_Tracer", "SMA_20Rnd_762x51mm_Mk316_Mod_0_Special_Long_Range_IR", "SMA_20Rnd_762x51mm_Mk319_Mod_0_Ball_Barrier", "SMA_20Rnd_762x51mm_Mk319_Mod_0_Ball_Barrier_Tracer", "SMA_20Rnd_762x51mm_Mk319_Mod_0_Ball_Barrier_IR", "SMA_20Rnd_762x51mm_Lapua_FMJ_Subsonic", "SMA_20Rnd_762x51mm_Lapua_FMJ_Subsonic_Tracer", "SMA_20Rnd_762x51mm_Lapua_FMJ_Subsonic_IR", "SMA_30Rnd_556x45_M855A1", "SMA_30Rnd_556x45_M855A1_Tracer", "SMA_30Rnd_556x45_M855A1_IR", "SMA_30Rnd_556x45_Mk318", "SMA_30Rnd_556x45_Mk318_Tracer", "SMA_30Rnd_556x45_Mk318_IR", "SMA_30Rnd_556x45_Mk262", "SMA_30Rnd_556x45_Mk262_Tracer", "SMA_30Rnd_556x45_Mk262_IR", "SMA_30Rnd_68x43_SPC_FMJ", "SMA_30Rnd_68x43_SPC_FMJ_Tracer", "SMA_30Rnd_68x43_SPC_FMJ_IR", "SMA_30Rnd_68x43_OTM_SPC", "SMA_30Rnd_68x43_OTM_Tracer", "SMA_30Rnd_68x43_OTM_IR", "SMA_150Rnd_762_Mk319", "SMA_150Rnd_762_Mk319_Tracer", "SMA_150Rnd_762_Mk319_Mixed", // =================== RH PISTOLS ===================== "RH_7Rnd_50_AE", "RH_16Rnd_9x19_cz", "RH_14Rnd_9x19_sw", "RH_12Rnd_45cal_usp", "RH_7Rnd_45cal_m1911", "RH_15Rnd_9x19_M9", "RH_33Rnd_9x19_g18", "RH_17Rnd_9x19_g17", "RH_30Rnd_9x19_UZI", // =================== OTHER ===================== "1rnd_he_grenade_shell", "rhs_mag_M713_red", "rhs_mag_M714_white", "30Rnd_556x45_Stanag", "20Rnd_762x51_Mag", "smokeshell", "smokeshellred", "smokeshellgreen", "smokeshellyellow", "smokeshellpurple", "HandGrenade", "chemlight_green", "chemlight_red", "chemlight_yellow", "chemlight_blue", "ACE_M84", "ACE_HandFlare_Yellow", "ACE_HandFlare_Green", "ACE_HandFlare_Red", "ACE_HandFlare_White", "B_IR_Grenade", "SLAMDirectionalMine_Wire_Mag", "APERSTripMine_Wire_Mag", "APERSBoundingMine_Range_Mag", "ClaymoreDirectionalMine_Remote_Mag", "DemoCharge_Remote_Mag", "SatchelCharge_Remote_Mag" ], true] call BIS_fnc_addVirtualmagazineCargo; [Box1, [ // Backpacks "b_kitbag_blk", "b_kitbag_cbr", "b_kitbag_oli", "B_UAV_01_backpack_F", "b_parachute", // Radiopacks "" ], true] call BIS_fnc_addVirtualbackpackCargo; Share this post Link to post Share on other sites
stu81 45 Posted January 4, 2016 this is in west_base_crate.sqf;Thanks :)@Foxhound What you mean? Less of a performance strain on server? Good to have options I suppose :) In my cheap 10man 2gb server I've noticed recently that if I leave the server running for more than 2 hrs it is using 175% ram and crashes. Would it help with that or is that just rpt spam from unfinished alpha mods etc? Share this post Link to post Share on other sites
stu81 45 Posted January 11, 2016 this is in west_base_crate.sqf; Still does not Blacklist the ammo i want rid of :( Not sure what the problem is. @ FOXHOUND Azza, Your script seems to let me whitelist/blacklist whatever I want but stops me loading any saved loadouts even if I save a brand new one with the new VA box :( Share this post Link to post Share on other sites
Azza FHI 50 Posted January 11, 2016 this is pasted from another thread about VA boxes one thing worth noting with the system that i posted, is that if a unit is carrying an item then it will show up in the arsenal also. E.G. u havent whitelisted ACE_morphine, but if he is carrying 1 stick of it then opens the arsenal box then he can take as many morphine as he wants. The 'fixed arsenal' mod fixes stuff like that if needed, i think. Also if a unit is carrying any item that is not whitelisted, he will not be able to save and load his kit. Share this post Link to post Share on other sites
Guest Posted January 11, 2016 Stop Lessing around with shitty scripts. Blacklist all items and withelist the ones you need. Dont forget that the system is messy and some items won't work, don't ask me why. Also don't forget to update the arsenal on client side each time it opens because the whitelisting may reset. Share this post Link to post Share on other sites