ScriptHookV .NET is a library that allows you to write custom mods for Grand Theft Auto V (GTA V) using the .NET Framework, specifically in C# or VB.NET. It acts as a bridge between your scripts and the GTA V game engine, enabling you to interact with game elements such as vehicles, characters, objects, and game logic.
Key Features of ScriptHookV .NET:
- .NET Scripting Environment:
- Allows mods to be written in C# or VB.NET, leveraging the power of the .NET Framework.
- Enables the use of object-oriented programming for more complex mods.
- Game API Access:
- Provides access to GTA V’s internal functions and objects, such as vehicles, pedestrians, and game events.
- Supports interaction with world elements like weather, time, physics, and more.
- Event System:
- Hooks into the game loop with events like
Tick
for frame updates andKeyDown
for handling user input. - Includes other events like
Aborted
, which triggers when a script is unloaded.
- Hooks into the game loop with events like
- Ease of Use:
- Simplifies script creation with built-in methods and structures for interacting with the game world.
- Provides debugging support and logs script errors to a file (
ScriptHookVDotNet.log
).
- Open Source:
- Hosted on GitHub, allowing developers to contribute, modify, and learn from the source code.