Author Topic: Keybind wont work  (Read 1365 times)

Quote
$remapDivision[$remapCount] = "Add-on Forcer";
$remapName[$remapCount] = "Open";
$remapCmd[$remapCount] = "openafgui";
$remapCount++;
$addonforcer = 1;
exec("./gui.cs");
function openafgui(%a){
canvas.pushdialog(addonforcer);
}
help please
the gui works, i even tested it with canvas.pushdialog(addonforcer);

put an echo in the function, does the echo say things?

put an echo in the function, does the echo say things?
no

what about if you put openafgui(); in the console?
then does the echo do stuff/GUI come up?

yeah welp
nothing was wrong with it, i forgot that keybinds dont work on the main menu lol


Relevant note: keybinds in the controls set bindings to MoveMap, which only works while playing the game itself. There's also GlobalActionMap, which works everywhere. However, you don't get the cool keybind setting in the menu.