FuriouZ Posted April 19, 2015 Posted April 19, 2015 Hello! How I can create a menu without mouse cursor ? So I can select things with arrow keys? What functions should I use for this ? Thanks!
FuriouZ Posted April 20, 2015 Author Posted April 20, 2015 Nah.. You don't get me. I wan't do to menu where i can move around with arrow keys, not mouse
HunT Posted April 20, 2015 Posted April 20, 2015 https://wiki.multitheftauto.com/wiki/BindKey https://wiki.multitheftauto.com/wiki/UnbindKey Depends on the project you need to make.
WhoAmI Posted April 20, 2015 Posted April 20, 2015 Insert this values which you will select in table like that table = { [1] = gui-element1, [2] = gui-element2, ... [n] = gui-elementn, } And the bind arrows and just add number to variable. Like that. local n = 0; bindKey ( "arrow_d", "down", function ( ) n = n + 1; table [ n ]; -- this is selected element1 end );
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now