MrGTAmodsgerman Posted July 2, 2015 Share Posted July 2, 2015 Hello, I have 2 Questions, 1.How to start my Code by holding my Vehicle Enter/Exit Key? I have the key but i want to run the code by holding the key Enter/Exit key. 2. How to make it possible that people that download my script, can change the Key for the script by a Ini File? So How to do that? Thanks in the future MrGTAmodsgerman Link to comment Share on other sites More sharing options...
qwerasdzxc Posted July 2, 2015 Share Posted July 2, 2015 You're using ScriptHook.NET? If yes then you have an option OnKeyDown for detecting keys that are currently down. And for Ini, type ScriptSettings and put a dot next to it ("ScriptSettings.") and you'll find what you're searching for.If you have any trouble, I'm here to help! MrGTAmodsgerman 1 Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted July 2, 2015 Author Share Posted July 2, 2015 You're using ScriptHook.NET? If yes then you have an option OnKeyDown for detecting keys that are currently down. And for Ini, type ScriptSettings and put a dot next to it ("ScriptSettings.") and you'll find what you're searching for. If you have any trouble, I'm here to help! Thanks man, so i test it later so i will report if it helps Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted July 5, 2015 Author Share Posted July 5, 2015 You're using ScriptHook.NET? If yes then you have an option OnKeyDown for detecting keys that are currently down. And for Ini, type ScriptSettings and put a dot next to it ("ScriptSettings.") and you'll find what you're searching for. If you have any trouble, I'm here to help! Yes i have OnKeyDown but i dont get it, how i can make it? ScriptSettings.Load("MySettins.ini"); and then? @qwerasdzxc Link to comment Share on other sites More sharing options...
qwerasdzxc Posted July 6, 2015 Share Posted July 6, 2015 You're using ScriptHook.NET? If yes then you have an option OnKeyDown for detecting keys that are currently down. And for Ini, type ScriptSettings and put a dot next to it ("ScriptSettings.") and you'll find what you're searching for. If you have any trouble, I'm here to help! Yes i have OnKeyDown but i dont get it, how i can make it? ScriptSettings.Load("MySettins.ini"); and then? @qwerasdzxcLook at these tutorialswww.youtube.com/playlist?list=PLbhQKmLHe3WVkQx1oO3XZuGcfk0ddzlUt Link to comment Share on other sites More sharing options...
MrGTAmodsgerman Posted July 6, 2015 Author Share Posted July 6, 2015 (edited) You're using ScriptHook.NET? If yes then you have an option OnKeyDown for detecting keys that are currently down. And for Ini, type ScriptSettings and put a dot next to it ("ScriptSettings.") and you'll find what you're searching for. If you have any trouble, I'm here to help! Yes i have OnKeyDown but i dont get it, how i can make it? ScriptSettings.Load("MySettins.ini"); and then? @qwerasdzxc Look at these tutorialswww.youtube.com/playlist?list=PLbhQKmLHe3WVkQx1oO3XZuGcfk0ddzlUt I already watch his Videos, he didnt make a tutorial about that @qwerasdzxc Edited July 6, 2015 by MrGTAmodsgerman Link to comment Share on other sites More sharing options...
qwerasdzxc Posted July 6, 2015 Share Posted July 6, 2015 You're using ScriptHook.NET? If yes then you have an option OnKeyDown for detecting keys that are currently down. And for Ini, type ScriptSettings and put a dot next to it ("ScriptSettings.") and you'll find what you're searching for. If you have any trouble, I'm here to help! Yes i have OnKeyDown but i dont get it, how i can make it? ScriptSettings.Load("MySettins.ini"); and then? @qwerasdzxc Look at these tutorialswww.youtube.com/playlist?list=PLbhQKmLHe3WVkQx1oO3XZuGcfk0ddzlUt I already watch his Videos, he didnt make a tutorial about that @qwerasdzxcThe OnKeyUp and OnKeyDown parts are explained very well. Ini is a bit more complicated and isn't explained in the videos, send me a pm if you need help about it. Link to comment Share on other sites More sharing options...
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