Community Script Hook V .NET 3.0.2 For GTA 5
Community Script Hook V .NET 3.0.2 For GTA 5
If you are a fan of Grand Theft Auto V and want to enhance your gaming experience with custom scripts, you might be interested in Community Script Hook V .NET (SHVDN), an ASI plugin that allows running scripts written in any .NET language in-game. In this article, we will introduce you to the features, requirements, and installation of SHVDN 3.0.2, the latest version released on December 29, 2022.
What is SHVDN?
SHVDN is based on the C++ ScriptHook by Alexander Blade, which is a library that provides access to the native functions of GTA V. SHVDN extends this functionality by allowing scripts to be written in any .NET language, such as C#, VB.NET, or F#. This means that you can use the powerful features of the .NET Framework and its libraries to create your own mods for GTA V.
SHVDN also provides a scripting API that wraps around the native functions and offers a more user-friendly and object-oriented interface. For example, you can manipulate the game world, entities, vehicles, weapons, UI, and more with simple commands and properties. You can also use events and tasks to handle game logic and interactions.
SHVDN supports both single-player and multiplayer modes of GTA V, and is compatible with the latest game updates. You can find many scripts created by the community on websites like [gta5-mods.com] or [gtaforums.com], or you can create your own scripts using your favorite .NET language and IDE.
What's new in SHVDN 3.0.2?
SHVDN 3.0.2 is the latest version of the plugin, which was released on December 29, 2022. It introduces some new features and improvements, such as:
You can now run scripts in the main thread rather than a dedicated thread by setting NoScriptThread of ScriptAttributes to true. This can improve performance and compatibility with some native functions, but note that Script.Yield() and Script.Wait() are not available and instead throw an exception when NoScriptThread is set to true.
NativeHashes enums are updated as some leaked source revealed all the exact native function names that exist in 1.0.2699. This can help you find the correct native function for your script.
Many new peds, vehicles, weapons, weapon components, and blip sprites are added to PedHash, VehicleHash, WeaponHash, WeaponComponentHash, and BlipSprite enums. This can help you spawn or modify these entities in your script.
Many new methods and properties are added to the scripting API, such as ShapeTest class for raycasting, Vehicle.BringToHalt() for stopping vehicles smoothly, Projectile.FromHandle() for getting projectiles from handles, Vehicle.IsParachuteDeployed for checking if a vehicle has a parachute deployed, and more. These can help you create more diverse and realistic scripts.
Many existing enums are updated with missing or corrected values, such as IntersectFlags, AnimationFlags, Font, VehicleDrivingFlags, EnterVehicleFlags, and more. These can help you use the scripting API more accurately and consistently.
How to install SHVDN 3.0.2?
To install SHVDN 3.0.2, you need to have the following requirements:
C++ ScriptHook by Alexander Blade, which is the base library for SHVDN.
.NET Framework 4.8, which is the runtime environment for SHVDN.
Visual C++ Redistributable for Visual Studio 2019 x64, which is a dependency for SHVDN.
Once you have these requirements installed, you can download the pre-built binaries of SHVDN 3.0.2 from the [releases page] on GitHub. You need to use the ASI file and the DLL files for APIs in an archive of the same version as internal structure can be changed without notices. Extract the files to your GTA V installation folder, where GTA5.exe is located. You should see something like this:
GTA5.exe ScriptHookV.dll dinput8.dll ScriptHookVDotNet.asi ScriptHookVDotNet2.dll ScriptHookVDotNet3.dll
Now you can run GTA V and enjoy the scripts that use SHVDN 3.0.2. You can find the scripts in the scripts folder, or create your own scripts using the examples and SDK provided by SHVDN. You can also use the console (F4) and the log file (ScriptHookVDotNet.log) to debug your scripts.
SHVDN 3.0.2 is a powerful and versatile plugin that allows you to run scripts written in any .NET language in GTA V. It offers a rich scripting API that wraps around the native functions and provides a more user-friendly and object-oriented interface. It also supports both single-player and multiplayer modes, and is compatible with the latest game updates. You can download SHVDN 3.0.2 from GitHub and install it easily with the C++ ScriptHook by Alexander Blade, .NET Framework 4.8, and Visual C++ Redistributable for Visual Studio 2019 x64. You can then enjoy the many scripts created by the community, or create your own scripts using your favorite .NET language and IDE.
We hope this article has helped you learn more about SHVDN 3.0.2 and how to use it for GTA V. If you have any questions or feedback, feel free to leave a comment below or visit the [issues page] or the [discussions page] on GitHub.