Documentation
Code Smith
Scan FiveM resources for loop abuse, missing waits, and asset clutter.
Code Smith scans a zipped FiveM resource and reports common scripting issues that cause server performance problems.
What it detects
- Tight loops with no Wait() call — the most common cause of server thread starvation.
- Heavy event handlers that execute expensive logic on every tick.
- Missing Citizens.CreateThread wrappers around async-pattern code.
- Unused asset references (models registered but never requested).
- Deprecated natives still present in the codebase.
Code Smith is a static analyser — it cannot catch runtime bugs or logic errors, only known anti-patterns.
Workflow
- 1Zip your FiveM resource folder (must include fxmanifest.lua at root).
- 2Drop the ZIP onto Code Smith.
- 3Review the report — each finding shows the file, line, and a description.
- 4Fix the flagged issues, re-zip, and re-scan to confirm.
Discussion