GTA V Online AHK-Macros
Provides hotkeys for several useful features in GTA V:Online, see list further down.
NOTE: I tested this on my SC installation and with my account. If something doesn't work, ask (open issue)! I evidently do heists most of the time so if you have ideas for useful CEO macros, let me know or just send them in!
GTAO 1.67 NOTE: VIP/CEO mode is apparently no longer needed. Cayo mode possibly broken, I cannot currently test. Thanks to @vCybah for providing 1.67 fixes
pssuspend.exe and pskill.exe are tools from the sysinternals collection. You can download the whole package (~3MB) directly from Microsoft.
You can copy them all but we only need pssuspend and pskill so go ahead and extract/copy pssuspend.exe
pskill.exe
to ANY of the following:
NOTE: Start the pssuspend.exe AND pskill.exe once by double clicking on it and accept the license agreement or it will silently fail.
You can (optionally) create a file config.ahk
in the same location as the main script to overwrite settings without needing
to change the main file making updates easier. You can include any or all settings in the top of the script.
SnackMenuKey := "F12" ; change a single key bind
; add a chat snippet
ArrayChatSnippets.push("Hey there!")
; start with a clear list (discard default snippets by clearing array)
ArrayChatSnippets := []
ArrayChatSnippets.push("The one and only snippet!")
; custom keybind, see custom additions (if you want all your keybind settings in one place)
Hotkey, ^F6, ExampleMacro
You can (optionally) create a file custom.ahk
in the same location as the main script to add custom macros without needing
to change the main file making updates easier.
; directly bind onto a key with double-colons
^F3::
; do something
return
; AHK hotstring (typing ll<tab> will trigger this example)
::ex::
goto ExampleMacro
return
; target macro for the hotstring above
ExampleMacro:
SplashTextOn 250, 20, Foo, Bar
Sleep 1000
SplashTextOff
return
; hotstring an existing macro from the main file
::lester::
goto CallLester
return
; handy for when you modifying or adding stuff
::rel::
SplashTextOn 250, 20, Reloading, Reloading script...
Sleep 1000
Reload
return
Since v1.2.0 the script includes a simple auto updater. By default it will check for a new version on GitHub every time you launch the script. If a new (or actually different) version is found it will prompt you to proceed or cancel. See the readme section about using config.ahk if you plan on changing settings as the update will replace the main script file!
You can disable the automatic check and/or bind a manual check to a hotkey in the configuration (DoCheckForUpdates
and CheckForUpdatesKey
).
Note that the update check hotkey still only works when GTA is active.
I'm not aware of any bans issued by Rockstar following the usage of AHK-scripts. I personally use AHK-scripts within GTA:O since 2014 and did not get banned. This is also not the only AHK-script available, I'm sure many are using them. At the end it's your call but I'm 99% certain that it wont get you banned.
I might forget to update so just check available keybinds :)
The following calls can be directly bound to a hotkey (adding more is trivial):
You can reach more (useful or useless contacts) by binding DialDialog
If it's not clear enough from the key list. You can use these symbols in
combination with keys. For example F1
to equip armor and +F1
(shift+F1) to just open the menu.
With AHK's hotstrings you could achieve something like the good old cheat codes to trigger macros. The issue is just to find words that won't trigger things like chat or the interaction menu.
::lester::
GoTo CallLester
return
This would allow you (in theory) to type "lester" followed by a TAB to trigger the macro. But again,
t
would open the chat usually and break the macro.
Yo, what's up with the scarf macro? Well if you have played normal heists with the heavy outfit once you know that you are slower but take less damage with them. Given that you play with a player saved heist outfit and own a scarf you can get rid of the armor and its speed effect while still keeping the protective aspects of it.
Just beware: Some cutscenes may remove the protective effect, quick-restart most certainly will remove the effect and some checkpoints will give you the armor back (visibly) and some wont. If you get the armor back you can repeat the scarf equip, otherwise no heist outfit for the rest of the mission.
I use it for example for the Pacific finale and equip the scarf after leaving the bank.
Contributions are very welcome! Either report errors, bugs and propose features or directly submit code:
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)Please use spaces for indentation and try to mimic the style off existing code :)
This repository is licensed under the MIT license.