> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Clear Server and Client Cache in FiveM

> Learn how to resolve script errors, map glitches, and client crashes by performing a clean cache reset on your FiveM server and client.

## Optimize Your FiveM Server by Clearing Cache

Clearing your cache is one of the most effective ways to troubleshoot common FiveM issues. Because FiveM compiles scripts and stores map data locally to speed up loading, these files can occasionally become corrupted or outdated, leading to glitches, crashes, or scripts not updating correctly.

<CardGroup cols={2}>
  <Card title="Difficulty" icon="gauge-low">
    Beginner Friendly
  </Card>

  <Card title="Time" icon="clock">
    5 Minutes
  </Card>
</CardGroup>

***

<Info>
  ### When Should I Clear Cache?

  You should consider clearing your cache if you encounter:

  * **Logic Discrepancies:** Script errors occurring immediately following an update or configuration change.
  * **Visual Artifacts:** Invisible geometry, "flashing" textures, or world map glitches.
  * **Join Failures:** Client-side crashes that exclusively occur when attempting to connect to a specific server.
  * **Asset Desync:** Recent changes to resources or vehicle models not reflecting in the live environment.
</Info>

***

## Cache Reset Methods

Depending on the issue, you may need to clear either the server-side cache or the client-side cache.

<Tabs>
  <Tab title="Method 1: Server-Side Cache">
    Perform this if you have updated a script or map on the server, but the changes (or errors) from the old version persist for all players.

    <Steps>
      <Step title="Stop Your Server">
        Log in to your [FREAKHOSTING Game Panel](https://panel.freakhosting.com) and **Stop** your server.
      </Step>

      <Step title="Access the File Manager">
        Navigate to the **Files** tab in the sidebar to view your server's root directory.
      </Step>

      <Step title="Delete Cache Folder">
        Locate the `cache` folder. Right-click it and select **Delete**.
        <Warning>Do not delete the `/resources/` folder, as this contains your actual server scripts and maps.</Warning>
      </Step>

      <Step title="Restart Your Server">
        Navigate back to the **Console** and click **Start**. The server will take a few moments longer to initialize as it re-compiles your assets.
      </Step>
    </Steps>
  </Tab>

  <Tab title="Method 2: Client-Side Cache">
    If a specific player is experiencing issues while others are fine, the problem is likely corrupted local data on that player's computer.

    <Steps>
      <Step title="Close FiveM">
        Ensure the FiveM application is completely closed on your PC.
      </Step>

      <Step title="Locate Application Data">
        Right-click your FiveM desktop shortcut and select **Open File Location**. Alternatively, navigate to `%localappdata%\FiveM`.
      </Step>

      <Step title="Open Data Folder">
        Enter the `FiveM Application Data` folder and then open the `data` directory.
      </Step>

      <Step title="Clear Cache Folders">
        Delete the following folders:

        * `cache`
        * `server-cache`
        * `server-cache-priv`
      </Step>

      <Step title="Restart and Rejoin">
        Launch FiveM again and rejoin the server. The client will download fresh copies of the server assets.
      </Step>
    </Steps>
  </Tab>
</Tabs>

***

<Check>
  ### Is My Data Safe?

  Clearing the cache is a safe procedure. It **does not** delete your MySQL database, player inventories, or server configuration files. It only removes temporary "compiled" files that are automatically recreated on the next launch.
</Check>

***

<AccordionGroup>
  <Accordion title="Troubleshooting Persistent Issues">
    If clearing the cache does not resolve your problem:

    * **Check Server Logs:** Look for specific script errors in the console.
    * **Verify Resource Syntax:** Ensure your `fxmanifest.lua` files are correctly configured.
    * **Update Artifacts:** Ensure your server is running the latest FiveM artifacts via the **Startup** tab.
  </Accordion>

  <Accordion title="Performance Tips">
    Avoid clearing the server cache too frequently, as it forces the server to re-compile all resources, which can cause temporary CPU spikes during startup.
  </Accordion>
</AccordionGroup>

<Note>
  ### Need Extra Help?

  If you encounter any issues, our support team is ready to assist:

  * **Live Chat:** Quick assistance via our website.
  * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
  * **Discord:** [Join our Community](https://discord.gg/freakhosting)
  * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)
</Note>

<Tip>
  ### Save on Your Hosting

  Ready to get a new server? Use code **KB20** at checkout for **20% off** your first month!
</Tip>

***

<div align="center">
  **Last Updated:** January 2026 | **FiveM:** Cache maintenance complete.
</div>
