There are already a few examples of this, but I just wanted to extend on this.
So what is a
Scroll Menu? Its the simplest for of menu in Arma that is activated by scrolling. This is my first menu i've created for Arma 3. When I started scripting in Arma 3, it was hard to find a working scroll template that was simple enough for my needs, but was a little more advanced than Lystic's template, and a little less advanced than JME's, so I created this.
It includes categories that you can change to fit your needs, such as a weapons menu, or a vehicle menu. I have not included scripts, but those aren't hard to find/make.
You can easily add a script by adding something like this into one of the subcategories, in this case, godmode. The "player addAction" is basically adding a action into the menu the user gets when he scrolls. For example:
Code:
player addAction ["Godmode",{player allowDamage false;hint "Godmode ON";}];
You can also easily add a subcategory by adding something like this:
Code:
player addAction ["TROLL",{[]spawn menu4;}];
menu4 = {
removeAllActions player;
player addAction["test1",{hint "test1";}];
player addAction["test2",{hint "test2";}];
player addAction["test3",{hint "test3";}];
player addAction["BACK",{[]spawn menu0;}];
};
I myself am still fairly new to scripting, so i'm sure to an experienced scripter, this code looks like garbage. I hope this helped you start to script, and if anyone needs help, just post below.
FULL TEMPLATE
Code:
hint "PHONY'S MENU LOADED";
[]spawn menu0;
menu0 = {
removeAllActions player;
player addAction ["MISCELLANEOUS",{[]spawn menu1;}];
menu1 = {
removeAllActions player;
player addAction["test1",{hint "test1";}];
player addAction["test2",{hint "test2";}];
player addAction["test3",{hint "test3";}];
player addAction["BACK",{[]spawn menu0;}];
};
player addAction ["WEAPONS",{[]spawn menu2;}];
menu2 = {
removeAllActions player;
player addAction["test1",{hint "test1";}];
player addAction["test2",{hint "test2";}];
player addAction["test3",{hint "test3";}];
player addAction["BACK",{[]spawn menu0;}];
};
player addAction ["VEHICLES",{[]spawn menu3;}];
menu3 = {
removeAllActions player;
player addAction["test1",{hint "test1";}];
player addAction["test2",{hint "test2";}];
player addAction["test3",{hint "test3";}];
player addAction["BACK",{[]spawn menu0;}];
};
player addAction ["TROLL",{[]spawn menu4;}];
menu4 = {
removeAllActions player;
player addAction["test1",{hint "test1";}];
player addAction["test2",{hint "test2";}];
player addAction["test3",{hint "test3";}];
player addAction["BACK",{[]spawn menu0;}];
};
};
YOU NEED AN INJECTOR/EXECUTOR TO USE THIS
To avoid detection, change variables... for example, change menu0 into something completely random, like soup25, because servers can run known variable checks!
Credits:
Not sure who needs credits, let me know below.