# Warning: server thread hitch warning

{% hint style="info" %}
Warnings **server thread hitch** / **sync thread hitch** indicate that a resource is blocking the thread for too long.
{% endhint %}

### Objective

Identify the resource causing the hitch, then reduce its impact (optimize, update, disable).

### Step-by-step guide

{% stepper %}
{% step %}
**Locate the warning in the console**

In the server console, you will often see lines like:

```
server thread hitch warning: timer interval of...
sync thread hitch warning: timer interval...
```

{% endstep %}

{% step %}
**Profile the resources (FiveM tool)**

In the console, start a recording: `record 500`

Then save: `save file_name`

Display the report: `view file_name`

A link is generated. Open it to see the slowest resources.
{% endstep %}

{% step %}
**Fix the identified resource**

Quick options:

* **Update** the resource (or replace it).
* **Reduce** what it does (loops, timers, events).
* **Disable** the resource to confirm the diagnosis.
  {% endstep %}
  {% endstepper %}

### Common issues

#### The hitch only happens at peak times

This is often related to:

* a resource that iterates over all players,
* DB queries that are too slow,
* a script that spams events.

### FAQ

#### Is the warning “serious”?

It depends. An isolated hitch is often OK.\
Repeated hitches affect player-side smoothness.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.oxygenserv.com/en/gta-v/avertissement-server-thread-hitch-warning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
