Skip to content

An ASI plugin for Grand Theft Auto V which allows running scripts written in Python 3 in game.

License

Notifications You must be signed in to change notification settings

CryptXor/scripthookvpy3k

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script Hook V Py3k

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.

Features

  • All native functions from ScriptHook accessible
  • Dependencies will be installed automatically
  • Scripts run as lightweight asynchronous tasks

Download

Coming soon.

Installation

  1. Install the Script Hook V
  2. Install Python 3.4.3 for Windows x64
  3. Extract the contents of the archive into your GTA V folder

Writing Scripts

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.

Building

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.

About

An ASI plugin for Grand Theft Auto V which allows running scripts written in Python 3 in game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.6%
  • Python 9.4%