FiveM
Crashes, hitches and thread hogs
Read the resource monitor and find the script that is eating the tick.
4 min read
Type resmon 1 in the F8 client console, or open the txAdmin performance view. Anything sitting above 0.5 ms on the server thread is worth investigating; above 2 ms it is your problem.
- "hitch warning" in the console names the resource that stalled the tick.
- Loops with no wait are the usual cause. A while true with Citizen.Wait(0) runs every frame.
- Scripts that query the database inside a loop instead of caching will show up here too.
- If the server crashes rather than hitches, the crash dump in the console names the last resource loaded.