[{"data":1,"prerenderedAt":51},["ShallowReactive",2],{"site":3,"blog-post-en-fivem-clear-cache-script":15,"blog-slug-site":44,"blog-scripts-en-fivem-clear-cache-script":50},{"site":4,"contact":10,"seo":13,"payment":14},{"name":5,"host":6,"default_locale":7,"locales":8},"X3D Developer","fivem.x3d-developer.com","th",[7,9],"en",{"discord_invite":11,"email":12,"line":12},"https:\u002F\u002Fdiscord.gg\u002FNA5kPVynFv","",{"google_site_verification":12,"bing_site_verification":12},{"bank_name":12,"account_name":12,"account_no":12,"promptpay_id":12},{"post":16,"html":21,"others":22,"productSlugs":43},{"slug":17,"title":18,"description":19,"date":20},"fivem-clear-cache-script","Free FiveM cache cleaner for Windows: clears every server's cache in one click, keeps your key bindings (download + full source)","A Windows .bat file players double-click to clear the FiveM cache for every server (cache, server-cache, nui-storage) without losing key bindings, graphics settings or the Rockstar link. Backs up fivem.cfg first. Fixes stuck loading, map not loading and stale files after a server update. Full source included.","2026-09-27","\u003Cp>&quot;Clear your cache first&quot; is the first thing every admin tells a player who is stuck on the loading screen, falls through the map, or still sees old files after a server update. Half the players cannot find the folder; the other half delete the wrong one and lose every key binding. This file fixes both: double-click, press Y, done.\u003C\u002Fp>\n\u003Ch2 id=\"download\">Download\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>\u003Ca href=\"\u002Fdownloads\u002Fx3d-fivem-clear-cache.zip\">x3d-fivem-clear-cache.zip\u003C\u002Fa>\u003C\u002Fstrong> (2 KB, contains the \u003Ccode>.bat\u003C\u002Fcode> and a README), or read the full source below and create it yourself in Notepad.\u003C\u002Fp>\n\u003Col>\n\u003Cli>Extract the zip anywhere (the Desktop is fine)\u003C\u002Fli>\n\u003Cli>Double-click \u003Ccode>x3d-fivem-clear-cache.bat\u003C\u002Fcode>, read the list of what will be deleted, type \u003Ccode>Y\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>Start FiveM normally. The first join to each server re-downloads its files, so it is slower once\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Server admins can send players this link instead of explaining folders again.\u003C\u002Fp>\n\u003Ch2 id=\"what-it-deletes-and-what-it-never-touches\">What it deletes and what it never touches\u003C\u002Fh2>\n\u003Cdiv class=\"table-scroll\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Deleted\u003C\u002Fth>\n\u003Cth>Kept\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Ccode>FiveM.app\\data\\cache\\*\u003C\u002Fcode> except the \u003Ccode>priv\u003C\u002Fcode> folder\u003C\u002Ftd>\n\u003Ctd>\u003Cstrong>every key binding\u003C\u002Fstrong> (\u003Ccode>%APPDATA%\\CitizenFX\\fivem.cfg\u003C\u002Fcode>)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>FiveM.app\\data\\server-cache\\*\u003C\u002Fcode>, files downloaded from every server (the big one, often several GB)\u003C\u002Ftd>\n\u003Ctd>graphics and audio settings (\u003Ccode>%APPDATA%\\CitizenFX\u003C\u002Fcode>)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>FiveM.app\\data\\server-cache-priv\\*\u003C\u002Fcode>, per-server data\u003C\u002Ftd>\n\u003Ctd>your linked Rockstar\u002FSteam account (\u003Ccode>data\\cache\\priv\u003C\u002Fcode>)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>FiveM.app\\data\\nui-storage\\*\u003C\u002Fcode>, per-server UI storage\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>data\\game-storage\u003C\u002Fcode>, GTA V game files, mods in \u003Ccode>plugins\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003C\u002Fdiv>\n\u003Cp>Before deleting anything the script \u003Cstrong>backs up \u003Ccode>fivem.cfg\u003C\u002Fcode> next to the .bat\u003C\u002Fstrong> as \u003Ccode>fivem.cfg.backup-&lt;date-time&gt;.txt\u003C\u002Fcode>. If anything goes wrong, copy it back to \u003Ccode>%APPDATA%\\CitizenFX\\fivem.cfg\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>The script closes FiveM first (files in use cannot be deleted), looks for FiveM in the default location \u003Ccode>%LOCALAPPDATA%\\FiveM\\FiveM.app\u003C\u002Fcode>, then in the registry entry FiveM writes on every launch. If it still cannot find it, drag your FiveM folder onto the .bat.\u003C\u002Fp>\n\u003Ch2 id=\"full-source-read-it-before-you-run-it\">Full source (read it before you run it)\u003C\u002Fh2>\n\u003Cp>The script ships as a plain text file with nothing hidden. Paste all of this into Notepad and Save As \u003Ccode>x3d-fivem-clear-cache.bat\u003C\u002Fcode> (Save as type: All Files) for the exact same result as the zip.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bat\">@echo off\nsetlocal EnableExtensions EnableDelayedExpansion\ntitle X3D FiveM Cache Cleaner 1.0\n:: X3D FiveM Cache Cleaner 1.0\n:: https:\u002F\u002Ffivem.x3d-developer.com\u002Fth\u002Fblog\u002Ffivem-clear-cache-script\u002F\n:: Clears the FiveM cache for EVERY server in one go.\n:: Keeps: key bindings, settings, Rockstar\u002FSteam link.\n:: Usage: double-click. Or drag your FiveM folder onto this file if FiveM is installed somewhere else.\n\necho.\necho  ==============================================\necho   X3D FiveM Cache Cleaner 1.0\necho   fivem.x3d-developer.com\necho  ==============================================\necho.\n\nset &quot;APP=&quot;\nif not &quot;%~1&quot;==&quot;&quot; (\n  if exist &quot;%~1\\data\\cache&quot; set &quot;APP=%~1&quot;\n  if exist &quot;%~1\\FiveM.app\\data\\cache&quot; set &quot;APP=%~1\\FiveM.app&quot;\n)\nif not defined APP if exist &quot;%LOCALAPPDATA%\\FiveM\\FiveM.app\\data\\cache&quot; set &quot;APP=%LOCALAPPDATA%\\FiveM\\FiveM.app&quot;\nif not defined APP (\n  for \u002Ff &quot;tokens=3,*&quot; %%A in ('reg query &quot;HKCU\\Software\\CitizenFX\\FiveM&quot; \u002Fv &quot;Last Run&quot; 2^&gt;nul ^| find \u002Fi &quot;Last Run&quot;') do set &quot;LASTRUN=%%B&quot;\n  if defined LASTRUN for %%F in (&quot;!LASTRUN!&quot;) do if exist &quot;%%~dpFFiveM.app\\data\\cache&quot; set &quot;APP=%%~dpFFiveM.app&quot;\n)\nif not defined APP (\n  echo  Could not find the FiveM folder ^(FiveM.app^).\n  echo  Drag your FiveM folder onto this file and try again.\n  echo.\n  pause\n  exit \u002Fb 1\n)\n\necho  FiveM folder : %APP%\necho.\necho  This deletes cached files for EVERY server:\necho    data\\cache\\*             ^(except &quot;priv&quot; = Rockstar link^)\necho    data\\server-cache\\*      ^(downloaded server files^)\necho    data\\server-cache-priv\\* ^(per-server data^)\necho    data\\nui-storage\\*       ^(per-server UI storage^)\necho.\necho  It KEEPS key bindings, game settings and your Rockstar\u002FSteam link.\necho  ^(%%APPDATA%%\\CitizenFX and data\\game-storage are never touched.^)\necho  A backup copy of fivem.cfg ^(key bindings^) is saved next to this file first.\necho.\nset &quot;ANS=&quot;\nset \u002Fp &quot;ANS= Continue? [Y\u002FN] &quot;\nif \u002Fi not &quot;%ANS%&quot;==&quot;Y&quot; (\n  echo  Cancelled.\n  pause\n  exit \u002Fb 0\n)\n\necho.\necho  Closing FiveM...\ntaskkill \u002FF \u002FT \u002FIM &quot;FiveM*&quot; &gt;nul 2&gt;&amp;1\ntimeout \u002Ft 2 \u002Fnobreak &gt;nul\n\nset &quot;STAMP=%DATE%_%TIME%&quot;\nset &quot;STAMP=%STAMP:\u002F=-%&quot;\nset &quot;STAMP=%STAMP::=-%&quot;\nset &quot;STAMP=%STAMP: =0%&quot;\nset &quot;STAMP=%STAMP:,=.%&quot;\nset &quot;BK=%~dp0&quot;\nif exist &quot;%APPDATA%\\CitizenFX\\fivem.cfg&quot; (\n  copy \u002Fy &quot;%APPDATA%\\CitizenFX\\fivem.cfg&quot; &quot;%BK%fivem.cfg.backup-%STAMP%.txt&quot; &gt;nul 2&gt;&amp;1 || (\n    set &quot;BK=%TEMP%\\&quot;\n    copy \u002Fy &quot;%APPDATA%\\CitizenFX\\fivem.cfg&quot; &quot;!BK!fivem.cfg.backup-%STAMP%.txt&quot; &gt;nul 2&gt;&amp;1\n  )\n  echo  Backup of key bindings: !BK!fivem.cfg.backup-%STAMP%.txt\n)\n\nset \u002Fa N=0\nif exist &quot;%APP%\\data\\cache&quot; (\n  for \u002Fd %%D in (&quot;%APP%\\data\\cache\\*&quot;) do (\n    if \u002Fi not &quot;%%~nxD&quot;==&quot;priv&quot; (\n      rd \u002Fs \u002Fq &quot;%%D&quot; &gt;nul 2&gt;&amp;1\n      if not exist &quot;%%D&quot; set \u002Fa N+=1\n    )\n  )\n  del \u002Ff \u002Fq &quot;%APP%\\data\\cache\\*.*&quot; &gt;nul 2&gt;&amp;1\n)\nfor %%D in (&quot;server-cache&quot; &quot;server-cache-priv&quot; &quot;nui-storage&quot;) do (\n  if exist &quot;%APP%\\data\\%%~D&quot; (\n    rd \u002Fs \u002Fq &quot;%APP%\\data\\%%~D&quot; &gt;nul 2&gt;&amp;1\n    if not exist &quot;%APP%\\data\\%%~D&quot; set \u002Fa N+=1\n  )\n)\n\necho.\necho  Done. Removed %N% cache folder^(s^).\necho  Start FiveM normally. The first join to each server re-downloads its files, so it takes a bit longer once.\necho.\npause\nexit \u002Fb 0\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"doing-it-by-hand\">Doing it by hand\u003C\u002Fh2>\n\u003Cp>If you would rather not run a script, this is the same thing manually.\u003C\u002Fp>\n\u003Col>\n\u003Cli>Close FiveM completely (check Task Manager for \u003Ccode>FiveM.exe\u003C\u002Fcode> and \u003Ccode>FiveM_GTAProcess.exe\u003C\u002Fcode>)\u003C\u002Fli>\n\u003Cli>Press \u003Ccode>Win + R\u003C\u002Fcode>, type \u003Ccode>%localappdata%\\FiveM\\FiveM.app\\data\u003C\u002Fcode>, Enter\u003C\u002Fli>\n\u003Cli>Inside \u003Ccode>cache\u003C\u002Fcode>, delete everything \u003Cstrong>except\u003C\u002Fstrong> the \u003Ccode>priv\u003C\u002Fcode> folder\u003C\u002Fli>\n\u003Cli>Delete the \u003Ccode>server-cache\u003C\u002Fcode>, \u003Ccode>server-cache-priv\u003C\u002Fcode> and \u003Ccode>nui-storage\u003C\u002Fcode> folders entirely\u003C\u002Fli>\n\u003Cli>Leave \u003Ccode>game-storage\u003C\u002Fcode> alone and never touch anything in \u003Ccode>%appdata%\\CitizenFX\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch2 id=\"when-to-clear-the-cache\">When to clear the cache\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Stuck on the loading screen for one server while others work (\u003Ca href=\"\u002Fen\u002Fblog\u002Ffivem-stuck-loading-screen\u002F\">every cause of a stuck loading screen\u003C\u002Fa>)\u003C\u002Fli>\n\u003Cli>Falling through the map, missing map, map loading too late after the server changed MLOs or cars (\u003Ca href=\"\u002Fen\u002Fblog\u002Ffivem-map-not-loading\u002F\">FiveM map not loading\u003C\u002Fa>)\u003C\u002Fli>\n\u003Cli>The server updated a script but your UI still shows the old version, or in-game images are wrong\u003C\u002Fli>\n\u003Cli>FiveM updated to a new build and a server you joined yesterday no longer loads\u003C\u002Fli>\n\u003Cli>Crashing with \u003Ccode>Recursive error: Streamer crashed\u003C\u002Fcode> or \u003Ccode>productId != ProductID::INVALID\u003C\u002Fcode> (clear the cache after the shader cache change in \u003Ca href=\"\u002Fen\u002Fblog\u002Ffivem-streamer-crashed-productid-invalid\u002F\">the Streamer crashed fix\u003C\u002Fa>)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Not every day. Only when something is wrong, because every clear re-downloads every server's files.\u003C\u002Fp>\n\u003Ch2 id=\"faq\">FAQ\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Do I lose my key bindings?\u003C\u002Fstrong> No. Bindings set in Settings › Key Bindings live in \u003Ccode>%APPDATA%\\CitizenFX\\fivem.cfg\u003C\u002Fcode>, which the script never touches, and it backs that file up next to the .bat every time.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Do I have to sign in to Rockstar\u002FSteam again?\u003C\u002Fstrong> No. The script skips the \u003Ccode>priv\u003C\u002Fcode> folder that stores the account link.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Windows or my antivirus warns when I open the .bat\u003C\u002Fstrong> — normal for any unsigned .bat file. Every line of the source is above. If SmartScreen appears, click More info › Run anyway, or create the file yourself from the source in Notepad.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>FiveM is installed on another drive\u003C\u002Fstrong> — drag the folder that contains \u003Ccode>FiveM.exe\u003C\u002Fcode> (or the \u003Ccode>FiveM.app\u003C\u002Fcode> folder) onto the .bat and the script uses that location.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Still stuck after clearing\u003C\u002Fstrong> — if other players on the server hang too, the problem is server side; send your admin the \u003Ca href=\"\u002Fen\u002Fblog\u002Ffivem-stuck-loading-screen\u002F\">server-owner section of the stuck-loading guide\u003C\u002Fa>. If it is only you, continue down that guide's player list (disable ReShade, verify game files, move to an SSD).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>macOS\u002FLinux?\u003C\u002Fstrong> FiveM runs on Windows only, so this is a .bat for Windows 10\u002F11.\u003C\u002Fp>\n\u003Cp>Server owners who want fewer stuck-loading tickets at the source: \u003Ca href=\"\u002Fen\u002Fproducts\u002Fx3d-loadingscreen\u002F\">X3D Loading Screen\u003C\u002Fa> (free) shows the resource actually loading and closes the screen when the world is ready. All free scripts are in the \u003Ca href=\"\u002Fen\u002Fblog\u002Ffree-fivem-scripts\u002F\">free FiveM scripts post\u003C\u002Fa>.\u003C\u002Fp>\n",[23,29,34,38],{"slug":24,"title":25,"description":26,"date":27,"updated":28},"free-fivem-scripts","27 Free FiveM Scripts From the Developer: Weapon Skins, Weapon Damage, ESX Inventory, Vaults, Admin Panel and More","Twenty-seven free FiveM scripts from X3D — collectible weapon skins, a weapon damage system, ESX inventory with hotkeys 1–9, vaults, trunk storage, an admin panel with token bans, bank and ATM, YouTube boombox, fortune teller with siamsi and tarot, ESX phone, death screen, drug selling, house robbery, minigames, ESX Legacy Core X3D Build, loading screen, Notify, Progress Bar, usable items, slide, Character Skin, Main Menu, Daily Login, Mailbox, Carry and Environment.","2026-09-18","2026-10-11",{"slug":30,"title":31,"description":32,"date":33,"updated":20},"fivem-map-not-loading","FiveM map not loading, falling through the map, buildings missing: causes and fixes for players and servers","FiveM falling through the map, map not loading, buildings and roads missing, spawning at (0,0,0) or dead. The real causes: slow HDD, low RAM\u002FVRAM, graphics mods, NPC overload, a core that saves corrupt coordinates on disconnect. Fixes for each, plus the free scripts that fix the server side.","2026-09-24",{"slug":35,"title":36,"description":37,"date":33,"updated":20},"fivem-stuck-loading-screen","FiveM Stuck on Loading Screen? 8 Fixes for Players, 5 for Server Owners","FiveM stuck on the loading screen, on the Rockstar launcher, on Connecting, or on a loading screen with music playing; black screen, white screen, loading never finishes. Step-by-step fixes for players (clear cache, move to SSD, disable ReShade, verify game files) and the server-side causes only the owner can fix (white loading screen, a client resource erroring at boot, the core spawning players before the world is ready).",{"slug":39,"title":40,"description":41,"date":42},"fivem-error-506","FiveM error 506: Failure connecting to the Rockstar Games Launcher — how to fix it","FiveM error 506 (ExitCode = 506) means FiveM could not talk to the Rockstar Games Launcher. Ordered fixes from safest to last resort, with an honest label on which steps Cfx.re documents and which are only forum reports.","2026-10-16",[],{"site":45,"contact":47,"seo":48,"payment":49},{"name":5,"host":6,"default_locale":7,"locales":46},[7,9],{"discord_invite":11,"email":12,"line":12},{"google_site_verification":12,"bing_site_verification":12},{"bank_name":12,"account_name":12,"account_no":12,"promptpay_id":12},[],1792316317149]