Log in to reply
 

How can I compile the sourcecodes into script file?



  • I have a source code and know a little language of scripthookv

    But I do not know how to compile my sourcecode into new script file(asi)

    I have a visual studio 2017 and my script is in C++ format

    please help! I have been struggling with this for almost a month


  • MODERATOR

    I have a source code

    Good for you.

    and know a little language of scripthookv

    So you know C++?

    But I do not know how to compile my sourcecode into new script file(asi)

    Set the project settings to compile the file as a dynamic library and use the .asi extension. Also point to the folder where you have your includes and add the scripthookv library to the linker.

    I have a visual studio 2017 and my script is in C++ format

    Yeah the C++ thing is implied with ScriptHookV.

    please help! I have been struggling with this for almost a month

    A basic step would be to borrow AB's SDK examples and replace the main script.cpp with whatever script you got your hands on.



  • @ikt How to find a dynamic library and how to make my sourcecode written in cpp file into asi file?


  • MODERATOR

    I just pointed you to it.

    The ScriptHookV page has a SDK download link. Get it and check out the samples. Basically just open a sample and replace the code in script.cpp with whatever you have. Linker options should have ScriptHookV.lib already.



  • @ikt I think now I know to make the new script but strangely it works a bit late after I enter the game. But anyway thanks!


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.