This mod already has it if you happen to not have one installed yet. Then, in order to load the ASI plugins-ASI being a mod library file that’s used to alter gameplay-you need to have ASI Loader installed. Specifically, copy ScriptHookV.dll to the game's main folder, which is where GTA5.exe should be located. To install Script Hook V, you need to extract the ZIP file, open the Bin folder, and copy the files. This compiled list of script plugins will only depend on this mod, so when the game updates, just update the mod to fix things. This is what Script Hook V does-you can basically run your game without worrying about the game’s scripts getting errors due to the mods you’ve installed.
Fortunately, you can use other mods as a solution.
However, making these mods work can be tricky, especially if their coding starts conflicting with each other.