This is an ASI plugin for Grand Theft Auto V that wraps around the C++ ScriptHook by Alexander Blade. It allows running scripts written in Python 3 in game by using the included GTA module.
- All native functions from ScriptHook accessible
- Dependencies will be installed automatically
- Scripts run as lightweight asynchronous tasks
Coming soon.
- Install the Script Hook V
- Install Python 3.4.3 for Windows x64
- Extract the contents of the archive into your GTA V folder
Please, read Develop with asyncio before you start.
See /python/scripts for a list of examples.
If you want to mock-test your script, you can run simulate.py in the /python directory.
You can (and should) provide metadata in your script. See metadata.py for details.
To run the script in GTA V, copy your .py
script file into scripts
in your
GTA V folder.
Press F12 in game to reload all scripts.
If you want to build the ASI plugin yourself, you'll need:
- Visual Studio 2013
- The Script Hook V SDK which has to be extracted into /sdk after downloading
- SWIG Version >= 3.0.5 which has to be extracted into /swig after downloading
- Python 3 for AMD64/EM64T/x64. Using the x86 version will not work!
Open the project file and build the solution in Release configuration.