This is the most common game crash issue, it mainly happens when you add peds to game, the solution its apply this FIX, case game still crash you can remove added peds by removing their lines from dlclist.xml file:
Using OpenIV enable "Edit Mode" and navigate to "mods\update\update.rpf\common\data", right click the dlclist.xml file and click in Edit
Navigate to the end of the file and you will see the latest added peds entries, remove the lines related to the peds you want remove, keep the ending lines, they are very important, save the file:
<Item>dlcpacks:\JohnCena2K15\</Item>
<Item>dlcpacks:\PeacemakerMK1\</Item>
<Item>dlcpacks:\Deadpool_05042024_113017\</Item>
<Item>dlcpacks:\Kratos_mstfa\</Item>
How to discover which ped lines to remove
Each time you install a added ped using a .OIV generated with my tool to add peds, the ped lines will be added in the end of dlclist.xml file, case you don't know the exact name, you can open the .OIV file using winrar or winzip, then open the file assemxly.xml with a text editor (or even a Web Browser) and see the part where it adds the lines to dlclist;xml file:
Game still crashing when loading story mode?
If even after removing added peds game still crash, issue it's probably worst, rename "mods" folder to "modsss" to disable mods folder and load game with his original RPF files, if game loads fine, apply the gameconfig.xml part of the added peds FIX and start adding peds again, it's interesting load the game after each thing you install or change to make sure game still works.
Game Crash BEFORE loading story mode
This is a more rare issue, commonly related to .ASI scripts in main game folder, i recommend disabling the ASI Loader (removing the dinput8.dll file from main game folder) to test. Case game loads fine, you can put back the ASI Loader and then move all .ASI files to somewhere outside game folder and start adding back one by one testing game each time to discover the guilty one.
Game Crash even without ASI Loader
Case game still crashes even without the ASI Loader file, the issue it's probably related to RPF files you changed outside Mods folder structure, use your game launcher to "Verify game files integrity" and restore possible modded files. If game still crash after this, probably your "User profile" files are corrupted, you should remove them from their folder to make game start new ones, they are located in:
C:\Users\%USERNAME%\Documents\Rockstar Games\GTA V\Profiles
"%USERNAME%" its your windows user name
Game crash after game update
Case your game started crashing after game update, you probably have issues with the old update.rpf file inside your mods folder, check this guide.
Script crash
-Antivirus blocks the script actions like checking Patreon login or writing .ini files
The solution in this case it's add the script .ndll file and the game GTA5.exe file in the "White list" of your antivirus software, each antivirus may have this feature somewhere, search on google to find out where ;)
-Issues in .ini files
If you set a too high number in a variable you may get errors loading that variable, this can result in script crashing or other issues when enabling powers, the solution it's find out which change you made and set a lower value. You also can delete the line of the variable to make the script write a new line with default value next time it loads.
Other possible solution it's delete the mod main .ini file located in the mod files folder inside gta Scripts folder, next time the script loads it will write default values in the main .ini file.