Server lagging? FiveM ships precise diagnostic tools — here's how to find the culprit in 5 minutes.
Hitch warnings: the symptom
In txAdmin or the console, lines like [WARNING] hitch warning: frame time of XXX milliseconds = the server "freezes". Under ~100ms is normal; regularly above 300ms, players feel it.
resmon: find the heavy script
In-game, open F8 console and type:
resmon 1 # enable resource monitor
resmon 0 # disable
The table shows each resource's CPU time. A script at >0.5ms constantly is suspicious — one at >2ms is a problem.
Common lag causes
- Too many scripts — 200+ poorly coded resources saturate the main thread
- Orphan entities — mass-spawned vehicles/NPCs/props (purge via vMenu or a cleanup script)
- Slow SQL queries — a script spamming the database (check oxmysql logs)
- Too many players for the plan — each player loads the server; 48+ slots need a solid plan
Quick fixes
- Disable scripts one by one (
stop namein txAdmin console) and watch resmon. - Schedule a daily restart (Schedules menu) — purges entities and memory.
- Update artifacts (latest version = performance fixes).











