Xabache Posted March 7, 2015 Share Posted March 7, 2015 I want to eliminate the need to press "F1" on autosignin lua has this ipc.btnToggle(btn-number) but from clientside I have not made it work successfully, nor did i know the button number for "F1" function cs2() outputChatBox("0") ipc.btnToggle(256) outputChatBox("2") end addEvent("cs2", true) addEventHandler("cs2",getRootElement(),cs) does mta not have sendKeys? I also tried the signup complete function that also triggered fine but did nothing function cs() outputChatBox("0") guiSetInputEnabled(false) guiSetVisible(sw,false) showCursor(false) outputChatBox("1") end I want to, after auto sign in, the player to be able to begin playing without pressing F1, which seems needless in all cases. Link to comment
.:HyPeX:. Posted March 7, 2015 Share Posted March 7, 2015 Just edit the code wich uses autosignin and call the function or cmd on resource start or whenever. Link to comment
Xabache Posted March 8, 2015 Author Share Posted March 8, 2015 as it turns out that wasn't actually doing what i thought. It was only bypassing F1 to play on re-sign in, not first sign in. Question remains open how to send keys? Or how to connect and play without pressing the ever tedious F1... Link to comment
.:HyPeX:. Posted March 8, 2015 Share Posted March 8, 2015 as it turns out that wasn't actually doing what i thought. It was only bypassing F1 to play on re-sign in, not first sign in. Question remains open how to send keys? Or how to connect and play without pressing the ever tedious F1... Did you even read my post? Link to comment
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