Use the profiler tool on the server and capture the frames during the problematic time, then analyze the results to see what resource is causing the lag.
Introduction
In a recent update to FiveM, we have a very easy and in game tool which we can use to identify the exact lines of code and threads causing issues within your server!
This can be used both server side, to help find hitch warnings, or client side to improve FPS. This guide will not explain how to fix these issues, simply how to identify where they are so you can tweak and research to fix them
Prerequisites
To ensure profiler works, make sure your client is up to date, and you are …