Use it from your MTA server folder
Download the Python script.
Place it in your MTA deathmatch folder, alongside resources:
deathmatch/
validate_renderware.py
resources/
Example Windows location:
C:\Program Files (x86)\MTA San Andreas 1.6\server\mods\deathmatch
Open PowerShell or a terminal in that deathmatch folder.
Recursively validate all .dff and .txd files in resources.
python ./validate_renderware.py ./resources
This reports each file's validation status.
Recursively attempt deterministic repairs for all .dff and .txd files in resources and its subfolders.
python ./validate_renderware.py ./resources --repair
This writes .repaired.dff or .repaired.txd files beside the originals by default and reports the status of each item (success or failure). Files with ambiguous structure are not written.
Original assets are not replaced unless you add --overwrite.
On Linux, use the equivalent deathmatch folder path and replace python with python3 if needed.