Author: Tonic
Author Website:

Requirements: No addons required

Version: 2.95

Short description: This script allows you to add or remove gear as well as shows you your current gear using an easy GUI.

Date: 2019-06-01 11:52

Comments: (70)


Virtual Ammobox System (VAS)


This was created for a specific mission to cut back on network lag & ammo box usage and well decided to release for public!
This script allows you to add or remove gear as well as shows you your current gear using an easy GUI.

To add this to your mission copy the gear folder from the scripts folder to your mission folder, edit description.ext and put:
#include "VAS\menu.hpp"
class CfgFunctions
	#include "VAS\cfgfunctions.hpp"
Somewhere in description.ext
This shouldn't conflict with any other dialogs unless you are trying to use this in Wasteland (as the class names for the dialogs are the same as wasteland).
It is best to attach the action to a pre-existing ammo box so place a ammo box on the map via editor and in the initialization field put:
this addAction["<t color='#ff1111'>Virtual Ammobox</t>", "VAS\open.sqf"];
And your done! Just look at the ammo box, scroll and click Virtual Ammobox. The interface is easy to use so have fun!

The Virtual Ammobox System Preloader (VASP) is a simple mission / utility for those that are having long load times while using addons such as ACRE. All you need to do is drag the
VAS_Preloader.Stratis.pbo to either your missions directory or MPMissions directory and whenever you are fixing to get into a large Co-Op mission or whatever with ACRE/Other large
addons just play the VAS_Preloader mission first and let it preload information for VAS, once it's completed you will have a hint and you're ready to go. Long load times should
no longer be a problem.

It is a simplistic concept and it's the best work-around that I can provide.

VAS can now display specific items/weapons/magazines/blah for each ammobox placed and configured. If no vars are detected then VAS acts as normal. A example crate on how to do this is provided with the example mission. Can be applied any number of ways just depends on your scripting knowledge.
The build also doesn't remove attachments by default, that was a configuration slip :P

Author notes:
If you want to help translate VAS into your language take a look at the stringtable.xml and contact me with a translation of the strings and it will be included in the next update of VAS.

Even though VAS is being localized for various other languages it doesn't mean that VAS will show in your language because the game engine currently doesn't enable the use of selecting your language and is English by default. This will fix its self when BIS finishes their own localization (hopefully during beta but probably after release). In the mean time if you want VAS to show in your language then edit the <Original> fields of the stringtable.xml and it will work.

Virtual Ammobox System (VAS) is permitted to be used in any mission so there is no need to ask for my permission. If you are modify VAS and have changes that you feel should be included in the release version then shoot me the changes and i'll take a look.

Known issues:

Credits & Thanks:
Kronzky - For his string function library
SaMatra - For help with UI Resources and Russian Translation
Dslyecxi - For his Paper doll giving insight on how to detect item types.
Tyrghen on Armaholic - For giving me the tip about CfgFunctions
naong - For his code tweaks to the Load / Save display.
Coding from armaholic - Translation of VAS from English->German
El nabot from Armaholic - Translation of VAS from English->French
czesiek77 from Armaholic - Translation of VAS from English->Polish
Ficc from BIS Forums - Translation of VAS from English->Portuguese
ramius86 on BIS Forums - Translation of VAS from English->Italian
RabsRincon on Armaholic - Translation of VAS from English->Spanish
Bakarda on BIS/Armaholic - Translation of VAS from English->Czech
MemphisBelle on BIS Forums - Translation Tweaks for German to fit.
Robalo on BIS Forums - Giving code changes to help support new compatibleItems class structure.
m0nkey for the changes in version 2.91

Use of Virtual Ammobox System (VAS) in a mission being published on Steam workshop is acceptable. Publishing VAS it's self is not. VAS is a tool / script resouce allowed to be used in missions and is not to be published separately (as is) to Steam Workshop.

Changed: UI ihas been made larger.
Changed: Transfer Loadout has been shifted from BIS_fnc_MP to remoteExec.
Changed: General code optimizations.
Added: "Remove All" button now hides when not on Items or Magazines tab to avoid confusion on what it does.
Added: Main interface now refreshes when closing out of the Load Manager window

VAS Preloader pbo included, seems it was lost to time when others started submitting updates. Thanks to m0nkey on armaholic for updating it at one point in time to be functional and anyone else that has contributed towards it in my absence.

2.91 (changes submitted by m0nkey)
Sep 6, 2015 - getting colorDisabled errors on A3 v1.50
>> \description.ext/VAS_Diag/controls/Filter5.colorDisabled'>>
modify version in menu.hpp
Sep 6, 2015
> line 341, updated from "v2.9" to "v2.91"
modify common.hpp
Sep 6, 2015
> line 184, inserted colorDisabled[] = {1,0.2,0.2,0.3};
> line 537, inserted colorDisabled[] = {1,1,1,0.3};
> line 1067, inserted colorDisabled[] = {1,1,1,0.3};

- Added: VAS will now preload and cache each category filter which should speed up the UI rendering.

- Changed: forceAddUniform now added in so you can freely wear any uniform without being 'naked'.
- Changed: TFAR radio patch from Robalo to properly remove TFAR radios from being added.
- Changed: Exit condition for VAS preloading in the config builder.

- Added: VAS can now display specific items/weapons/magazines for each ammobox placed (more indept configuration).
- Added: Version number in right side of title bar.
- Added: New Russian localizations.
- Added: Alphabetical sorting.
- Changed: The quick magazines box now checks against the config for restricted / magazines.
- Changed: Default save slots bumped from 10 to 15.
- Changed: VASP now ends when it completes it's preloading process.
- Fixed: Attachments restricted were showing in the quick attachments section.
- Fixed: Error in expression < _this call VAS_fnc_quickAddDrag; > Error Type Script, expected Bool

- Added: The new attachment list box checks against the config for restricted attachments.
- Added: French Translations for new prompts & Other localizations added in earlier builds (need more).
- Changed: Listbox scrollbar resources changed (looks slightly different).
- Fixed: Auto-scroll issue with scrollbars (Related to above change).

- Added: Ability to add items to specific containers (Drag from Virtual ammobox to the container icon).
- Added: Listbox of compatible attachments.
- Changed: Updated various resources for the new A3 1.10 patch (I think it's 1.10?)
- Fixed: Couldn't remove a weapon that was stored in the backpack.
- Fixed: Missing semicolon (;) error.

Forum topic:
- Armaholic forums

Steam Workshop:
- Subscribe

Enable javascript to be able to download from Armaholic please!

Tags: Ammobox,   Gear