Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (24 loc) · 1.45 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.45 KB

Deprecated - further development moved to this repo

SHVDN-NativeGen

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.

Features

View the info about a native hash right in your IDE: image

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: image

Options

You can specify generating options with commandline, e.g.

SHVDN-NativeGen.exe Parameters Returns

See this enum for all supported options