Windows Defender or third-party antivirus software may be blocking the game from accessing the Documents folder where user files and logs are stored.
Check the modloader folder within your game directory. If a modloader.log already exists, try ; the game will attempt to create a fresh one upon launch. gta san andreas failed to open log file
The game lacks the necessary permissions to write files to the installation directory. Windows Defender or third-party antivirus software may be
If the game is installed in C:\Program Files (x86) , Windows security is extremely strict. gta san andreas failed to open log file
The game folder or specific log files (like modloader.log ) might be set to "Read-only".
If the game cannot write its log, it may be because the folder is locked.