Deprecated - further development moved to this repo
Source generator for ScriptHookVDotNet
This program generates C# source file NativeHashes.cs and NativeInvoker.cs for ScriptHookVDotNet with parameters, return type and comments, using data from alloc8or's nativedb. Pre-generated file can be found in the main folder, along with source code.
View the info about a native hash right in your IDE:
Strong-typed invoker allowing you to call native like normal functions:
// Add this line at the top of you source file
using static GTA.Native.NativeInvoker;
// Then you can call it like this
Entity killer = GET_PED_SOURCE_OF_DEATH(Game.Player.Character);
Comment is fully supported as well:
You can specify generating options with commandline, e.g.
SHVDN-NativeGen.exe Parameters Returns
See this enum for all supported options