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

Sardelka9515/SHVDN-NativeGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Source generator for SHVDN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages