SolvedaddAction when key is pressed?

Posts 1–5 of 5 · Page 1 of 1
addAction when key is pressed?
So I'm just making a simple scroll menu that I can use on this ArmA 3 Life server as their anti-cheat somehow sees when I open my other menu.
I have it working, but it adds like 4 actions to open the menu and when it opens doesn't get rid of the 4 open menu actions, so I want to have a keybind so that it adds the actions and then the action to close the menu which will remove the actions.

Code:
skruffys_scroll_menu = player addAction ["<t color='#FF0000'>Open Menu</t>", {call openmenu}];

    openmenu = {
        player removeAction skruffys_scroll_menu_open_menu;
        skruffys_scroll_menu_toggle_esp = player addAction ["<t color='#40FF00'>Toggle ESP</t>", {call playesp}];
        skruffys_scroll_menu_toggle_vehiclegod = player addAction ["<t color='#40FF00'>Toggle Vehicle God</t>", {call vehiclegod}];
        skruffys_scroll_menu_toggle_playergod = player addAction ["<t color='#40FF00'>Toggle Player God</t>", {call playergod}];
        skruffys_scroll_menu_give_cash = player addAction ["<t color='#40FF00'>Give Cash</t>", {call givecash}];
        skruffys_scroll_menu_close_menu = player addAction ["<t color='#FF0000'>Close Menu</t>", {call closemenu}];
    };
Basically, thats the first part of the script and it adds like 4 options to open the menu and it's terrible :P. So how can I add a keybind to add the actions
you mean a keybind to open the menu or to open the addaction?
addAction menus are detected by spyglass now are they not?

If not, use my scroll menu template that i released here.

remove all the scripts and add your own, it has key binding already added and can be removed again, if you don't wanna use it, then use it as reference for making your own.
Quote Originally Posted by Jme View Post
addAction menus are detected by spyglass now are they not?
mine still works as long as i execute it ingame
No response after two days, assuming solved.
/Closed
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us