If you are using scripthook you will need a cracked one to play online. The unpatched version terminates the game if you try to connect online as a safety measure since Rockstar flags accounts that are using things like Cheat Engine and dsound.dll
The cracked ones come with GTAV_Native.dll you can find one of those lurking around the forums.
Or at least mine does.