# Load either CUP Weapons or RHS AFRF. CBA is optional, crash occurs whether it's loaded or not. CBA is only useful for buttons in this example.
# Make a mission or load into the virtual arsenal (just get access to the debug console in mission).
# Execute [[ https://github.com/johnb432/Zeus-Additions/blob/dev/addons/main/functions/fnc_createResupplyGUI0.sqf | this ]] code.
# Select the 'AK_762x39' category when using CUP Weapons, 'AK_545x39' when using RHS AFRF.
# Select one or multiple entries (magazines) in the 2nd listbox using shift. You must just shift click once, so you get it like in the picture.
# Select the 'AK_545x39' category when using CUP Weapons,, 'AK_762x39' when using RHS AFRF.
# Game crashes to desktop.
If you follow the logs I made, it crashes when it tries to clear.
I have tried to workaround the problem by using 'lbDelete' on every entry in the listbox (see commented out code), but it only pushes the problem further down the line:
When trying to add stuff back into the listbox after having removed everything, it crashes.