Analytics runs only if you accept. No names, codes or payment details are sent, and shopping works the same either way. Details: privacy and cookies.

  • Necessary Keeps your cart and this choice in your browser so the store works. We ask again after 12 months.
    Always on
  • Analytics (PostHog) Counts pages, clicks and store actions with your device type and rough location, and may record your visit with typed text hidden. Its cookie lasts 365 days. Data is stored in the EU. If you log in with Cfx.re, your visits count as one customer on each device where you accept, and your Cfx.re name is never sent.
    Off
  • Videos Product videos load from YouTube (Google) only when you press Play. YouTube may store data on your device. If you reject, Play opens the video on youtube.com in a new tab instead.
    When you press Play

With analytics on, the site keeps this visit's campaign source in this tab until you close it.

Change your choice any time with Cookie settings at the bottom of the page.

Clear FiveM cache: what to delete and keep

To clear the FiveM cache on a player’s PC, close FiveM and delete the server-cache and server-cache-priv folders in %localappdata%\FiveM\FiveM.app\data. Keep game-storage, which holds the GTA V data FiveM downloaded. On the server, stop it and delete the cache folder in the server data folder. It’s the same on ESX, Qbox and QBCore, because the cache belongs to FiveM, not to the framework.

Do the server first. If a player clears their cache while the server still has the old files, they download the old files all over again.

When a cache clear helps

  • You replaced a script’s or an asset’s files and restarted the server, but players still see the old screen, texture or model.
  • After a script update, the console prints Syntax error near '<\1>' or attempt to call a nil value (field 'x'). Our common problems page traces these to a wrong Config.Framework, missing files, or an update that replaced some files but not others. Once every file is in place, one of the fixes it lists is clearing both the server cache and the client cache.
  • A crash on launch or the Game data outdated message isn’t a cache problem. Cfx.re’s fixes for both are under “If it still fails”.

Before you start

  • Every changed file is on the server. Replace the files the update changed and add any new ones. An escrowed script also needs its .fxap file and its hidden files, or the server prints Failed to verify protected resource (what that error means). For replacing a script’s files step by step, see installing FiveM scripts.
  • Keybinds are safe. FiveM keeps keybinds in fivem.cfg, and the data scripts save in its key-value storage goes in the kvs folder. Both live in %appdata%\CitizenFX, which these steps never open.
  • This isn’t an FXServer update. Updating the server build is a separate job: update FiveM server artifacts.

Which folders to delete

All of these folders are in %localappdata%\FiveM\FiveM.app\data, the default install. If FiveM is installed somewhere else on that PC, open that install’s FiveM.app\data folder.

Folder What it holds Delete it?
server-cache-priv Script and asset files downloaded from the servers the player joined Yes
server-cache FiveM’s resource cache, which can be empty Yes
nui-storage The in-game browser’s data, where script screens can store their own data Only if a script screen still shows the old version
cache Server list data and copies of FiveM’s own programs, no server files No, it doesn’t fix old scripts
game-storage GTA V game data FiveM downloaded, by far the largest folder here Never. FiveM would download it all again

Leave every folder outside data alone. citizen and bin are FiveM itself, and plugins and mods hold add-on files. FiveM’s client source stores game data in data\game-storage and moves an old cache\game folder there. Older installs may still have cache\game or server-cache\game. Leave those two alone as well.

Clear the server cache

  1. Stop the server, from the txAdmin dashboard or, on a plain install, by closing FXServer.
  2. Find the server data folder. In txAdmin, open Settings, then the FXServer tab. The “Server Data Folder” field shows the path of the folder that contains resources. A txAdmin recipe install puts it inside txData, in a folder whose name ends in .base. On a plain install it’s the folder you start FXServer from, which Cfx.re’s setup guide calls server-data.
  3. In that folder, rename cache to cache-old. Leave resources, server.cfg, db and every other folder as they are. The cache\files folder holds packed copies of each started resource, such as cache\files\tk_policejob\resource.rpf.
  4. Start the server. FXServer rebuilds the cache as each resource starts.
  5. Once the server runs without errors, delete cache-old. If the server fails to start, stop it, delete the rebuilt cache and rename cache-old back to cache.

Clear the cache on a player’s PC

You can post these steps in your Discord after an update.

  1. Close FiveM. In Task Manager, end FiveM.exe and every process whose name starts with FiveM_.
  2. Press the Windows key and R, enter %localappdata%\FiveM\FiveM.app\data and select OK. The folder from the table opens.
  3. Delete server-cache and server-cache-priv. Don’t delete game-storage.
  4. Start FiveM and join the server. The first join takes longer while FiveM downloads the server’s files again.
  5. If a script screen still shows the old version, close FiveM again, delete nui-storage too and start FiveM. That wipes everything FiveM’s in-game browser stored, including what script screens saved.

Check it works

  • Server: cache\files holds a folder for each started resource again, and the console shows no error for the updated script.
  • Player PC: server-cache-priv fills again during the first join, and the updated screen, texture or model shows in game.

If it still fails

  • Windows says a folder is in use: FiveM is still running. End FiveM.exe and the FiveM_ processes in Task Manager, then delete the folders again.
  • Opening database (privcache:/) failed: IO error: Could not lock file: Cfx.re’s article blames this on a stuck process or an antivirus holding a file. Restart the PC first. If it happens again, open Resource Monitor (resmon) and search the handles on the CPU tab for server-cache-priv. End the process holding it, unless it’s named like FiveM_b[GameBuild]_GTAProcess.exe.
  • Game data outdated: FiveM needs to update the local game data.: don’t delete anything. Cfx.re’s fix is to select “Yes”, let FiveM update its game data and restart it. If the message comes back, check the IVPATH= line in CitizenFX.ini, in %localappdata%\FiveM\FiveM.app. It must point to the GTA V folder.
  • GTA5_bXXXX.exe!_runReaderThreadTick crash: Cfx.re’s article says verifying the GTA V game files fixes most cases, not a cache clear.
  • The old version shows even after both clears: an old file is still on the server. Compare the resource folder with the download and copy every changed file again. Our docs suggest WinSCP instead of FileZilla for the upload.
  • Furniture thumbnails or interior photos in our Housing System V3 & Shell Creator look old after a cache clear. The script stores these images itself, on the server and in each player’s game, so a FiveM cache clear leaves the server’s copy alone. To clear them, an admin runs /housing_clearthumbnails in game, or housing_clearthumbnails in the server console. The images clear for the server and every connected player, then render again. Config.Commands.clearThumbnails in config/config.lua sets the command name.

Subscriptions

Spin for a discount code

Every spin gets a code; chance sets its size.

Cfx.re login and joining our newsletter are needed for your code.

Checking whether you can spin…

Odds for every spin
DiscountChanceMinimum order
15% off60%None
20% off28%None
25% off10%€30.00 + VAT
30% off2%€39.00 + VAT

Wheel codes work on scripts, bundles and a monthly plan's first payment, not on gift cards. One spin per Cfx.re account every 90 days. Each code is valid for 14 days and works once, with one code per order.