How to Clear Server and Client Cache in FiveM

How to Clear Server and Client Cache in FiveM

 

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


Optimize Your FiveM Server by Clearing Cache

FiveM uses caching to improve performance by storing:

  • Compiled scripts
  • Streamed assets (maps, vehicles, textures)
  • Temporary connection data

While this speeds up loading, it can also cause issues when:

  • Files become outdated after updates
  • Cached data becomes corrupted
  • Resources fail to sync properly

Clearing cache forces FiveM to rebuild everything from scratch — often resolving issues instantly.


Difficulty

Beginner Friendly

Estimated Time

~5 minutes


When Should You Clear Cache?

You should clear your cache if you experience any of the following:

Script / Logic Issues

  • Errors appearing after updating scripts
  • Features not behaving as expected after changes
  • Old logic still running despite updates

Visual / Map Issues

  • Invisible buildings or props
  • Flickering or “flashing” textures
  • Missing or broken map areas

Connection Problems

  • Crashing when joining a specific server
  • Infinite loading screen
  • Being kicked without clear reason

Asset Desync

  • New vehicles, maps, or assets not appearing
  • Old versions of assets still showing

Cache Reset Methods

There are two types of cache you may need to clear:

  • Server-side cache → fixes issues affecting all players
  • Client-side cache → fixes issues affecting only you

Method 1: Clear Server-Side Cache

Use this when:

  • You’ve updated scripts or maps
  • Changes are not applying server-wide
  • Multiple players report the same issue

Step 1: Stop Your Server

Log in to your hosting panel and fully stop the server.

⚠️ Never delete cache while the server is running — this can corrupt files.


Step 2: Open File Manager

Navigate to your server’s root directory using:

  • File Manager (panel)
  • Or SFTP/FTP access

Step 3: Delete the Cache Folder

Locate and delete the following folder:

/cache/

Important:

  • Only delete the cache folder
  • Do NOT delete:
    • /resources/
    • /server.cfg
    • Any core files

Deleting the wrong files will break your server.


Step 4: Restart Your Server

Start your server again.

  • First boot may take longer than usual
  • This is normal — assets are being rebuilt

Method 2: Clear Client-Side Cache

Use this when:

  • Only you are experiencing issues
  • Server works fine for other players
  • You are crashing or seeing glitches

Step 1: Close FiveM Completely

Make sure FiveM is fully closed (not running in background).


Step 2: Navigate to FiveM Application Data

Press Windows Key + R and paste:

%localappdata%\FiveM\FiveM.app\data\

Step 3: Delete Cache Files

Delete the following folders:

cache/
server-cache/
server-cache-priv/

Optional (safe to delete if issues persist):

nui-storage/

⚠️ Do NOT delete the entire FiveM folder — only these directories.


Step 4: Relaunch FiveM

Start FiveM again and reconnect to your server.

  • First load may be slower
  • Assets will re-download automatically

Best Practices

Clear Cache After Major Updates

Any time you:

  • Add new scripts
  • Replace maps
  • Update vehicles

→ Clear cache to avoid conflicts


Don’t Overuse Cache Clearing

If you need to clear cache constantly, you likely have:

  • Poorly configured resources
  • Conflicting scripts
  • Broken assets

Fix the root cause instead of relying on cache resets.


Test Changes Properly

After updating:

  1. Restart server
  2. Clear server cache (if needed)
  3. Join with a clean client cache
  4. Verify everything works

Common Mistakes to Avoid

  • Deleting /resources/ instead of /cache/
  • Clearing cache while server is running
  • Assuming cache fixes everything (it doesn’t)
  • Ignoring underlying script errors

This process is one of the fastest ways to resolve FiveM issues — but it should be used strategically, not as a crutch.

SPONSORED

Reliable FiveM Hosting Built for Serious Communities
From just £4.20/month, get high-performance hosting backed by 30Tbps Anycast DDoS protection for maximum uptime and security.

Get Started in Seconds →

Learn more