QUESTION: How can i simulate keypress event for key "H"
i've tried sendkeys.send("H"); but that just crashes the script. any way how to do this? i want to press H key to open another mod with controller without actualy using the keyobard.
this fucntion is inside OnTick() Event...
@preto89 SendKeys doesn't work well for games. You can try this class I've set up for a program I made a while back. I've never tested the code in a GTA V script though.
Moved to General Modding Discussion.
i've fix it , SendKeys.SendWait("H"); did the job.