Jump to content

Hi,

So I want to learn to make GTA V mods. The ones that build as asis, and use ScriptHookV as a base. I learnt a bit of C++ (console applications), but after learning that, I cannot understand how they're made still. I don't really know what to do. Thanks.

Link to comment
https://linustechtips.com/topic/425252-learning-to-script-gta-v-mods/
Share on other sites

Link to post
Share on other sites

I have made some mods using Scripthook for GTA VI but what I see there is not much difference, so you need download and install Visual Studio C++, then you open one of two examples (.sln is VS C++ project file [solution], you can open it and compile) and tinker with it, so those examples can be your skeletons-tempaltes, they should be configured so it will compile and link with ScriptHook library, just change what they do. After compilation there are dll file created, you need to rename it to .asi and you can test it in game.

 

For ideas you can look into inc/natives.h, there are all available functions, your work is mostly presume what those functions do based on their names and attributes, some of attributes and functions names may not be yet deobfuscated, so in some cases you can't tell what such function do. 

 

The rest is just googling and looking on forums. You can look my mod here 

and to make it I used on speedometer example, it showed me how to load textures and draw them on screen. So those examples are meant to show you how to make mods that uses graphics (speedometer mod example) and those that use text based menus and list (native trainer)
Link to post
Share on other sites

Hi,

So I want to learn to make GTA V mods. The ones that build as asis, and use ScriptHookV as a base. I learnt a bit of C++ (console applications), but after learning that, I cannot understand how they're made still. I don't really know what to do. Thanks.

 

If you know .net, there's a community .net API that you can use here:http://gtaforums.com/topic/789907-community-script-hook-v-net/

 

Else you can find that C++ native database here: http://www.dev-c.com/nativedb/

 

I suggest you look at the SDK you can download here: http://www.dev-c.com/gtav/scripthookv/; The SDK will give you a good overview of how to code C++ for the game, also Visual Studio community is pretty much required (and recommended) for coding a decent mod.

 

I created this mod for GTA V.

Link to post
Share on other sites

What I do know about ScriptHook V is that is almost always breaks my GTA V install.

I get the same behaviour with the FOV mod.

Whenever I install it, GTA V won't work.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

I get the same behaviour with the FOV mod.

Whenever I install it, GTA V won't work.

 

 

My scripthook v since the first illgottengains update wont work.

 

The scripthook is updated often, make sure you have the latest version.

 

NOTE: Scripthook wont work with illegal copies or on GTA Online.

Link to post
Share on other sites

The scripthook is updated often, make sure you have the latest version.

 

NOTE: Scripthook wont work with illegal copies or on GTA Online.

I have a legitimate copy of ScriptHook and it worked on GTA online (PC) however since the new updates it doesn't work anymore.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×