rvmod 1 Posted June 30, 2015 (edited) Hello, I am new to modding and I have a question about user input. I have seen a mod which accepts an user input to compute specific functions/tasks. Here is an example: Is there a native to accept inputs from the user or there is some other trick behind it? Thank you. Edited June 30, 2015 by rvmod Quote Share this post Link to post Share on other sites
Jitnaught 377 Posted June 30, 2015 Hello, I am new to modding and I have a question about user input. I have seen a mod which accepts a user input to compute specific functions/tasks. Here is an example: Is there a native to accept inputs from the user or there is some other trick behind it? Thank you. Probably using http://gtaforums.com/topic/717612-v-scriptnative-documentation-and-research/page-16?do=findComment&comment=1067396160 Quote Share this post Link to post Share on other sites
rvmod 1 Posted June 30, 2015 Hello, I am new to modding and I have a question about user input. I have seen a mod which accepts a user input to compute specific functions/tasks. Here is an example: Is there a native to accept inputs from the user or there is some other trick behind it? Thank you. Probably using http://gtaforums.com/topic/717612-v-scriptnative-documentation-and-research/page-16?do=findComment&comment=1067396160 Unfortunately, this isn't working. Quote Share this post Link to post Share on other sites
Colata 5 Posted July 1, 2015 Hello, I am new to modding and I have a question about user input. I have seen a mod which accepts an user input to compute specific functions/tasks. Here is an example: Is there a native to accept inputs from the user or there is some other trick behind it? Thank you. From my experience that can be activated using " ` " left of the "1" key. You can activate in-game cheats, like invincibility, give gun loadouts, etc. unless you're planning on using it to take player input to do tasks like spawning cars, etc. that aren't already implemented into the games cheats? Quote Share this post Link to post Share on other sites
0Root1 0 Posted July 1, 2015 My question is, how you can develop mods in C++? Quote Share this post Link to post Share on other sites
darthbollo 1 Posted July 2, 2015 My question is, how you can develop mods in C++? You get the SDK, learn the language, then learn the SDK syntax. then you make the mod Quote Share this post Link to post Share on other sites
CamxxCore 163 Posted July 2, 2015 (edited) Hello, I am new to modding and I have a question about user input. I have seen a mod which accepts an user input to compute specific functions/tasks. Here is an example: Is there a native to accept inputs from the user or there is some other trick behind it? Thank you. Here is how I did it.. There are better ways of doing this. Its sort of haphazard. I just needed something that would work for testing models in- game bool updatingKeyboard = false; void GetOnscreenKeyboardInput() { Function.Call(Hash.DISPLAY_ONSCREEN_KEYBOARD, false, "FMMC_KEY_TIP", "", "", "", "", "", 40); updatingKeyboard = true; }//Call on tick and check for the result. //ie: UpdateOnscreenKeyboard(out result); if (result != null) { UI.ShowSubtitle(result); } void UpdateOnscreenKeyboard(out string result) { if (!updatingKeyboard) { result = null; return; } if (Function.Call<int>(Hash.UPDATE_ONSCREEN_KEYBOARD) == 2) { updatingKeyboard = false; result = null; return; } while (Function.Call<int>(Hash.UPDATE_ONSCREEN_KEYBOARD) == 0) Script.Wait(0); if (Function.Call<string>(Hash.GET_ONSCREEN_KEYBOARD_RESULT) == null) { updatingKeyboard = false; result = null; return; } result = Function.Call<string>(Hash.GET_ONSCREEN_KEYBOARD_RESULT); updatingKeyboard = false; }If you want to be able to use text from the clipboard, its possible but there is more involved. Edited July 2, 2015 by CamxxCore Quote Share this post Link to post Share on other sites
rvmod 1 Posted July 2, 2015 @LetsPlayOrDy: It worked, thanks. Quote Share this post Link to post Share on other sites