Wanted to quickly share my updated/modified run.bat file for those who are currently tired of manually deleting their cache every time they want to make a server edit.
Note: The batch file will perform the following functions
- Auto close the server (if running)
- Auto close FiveM (if running)
- Auto Delete temp server cache files
- Auto Start the server
- Auto start FiveM
***Please be aware that this batch file must be edited before running as you must change your user name within the script. *I have highlighted the lines that need to be edited.
Also Note: that the Batch file will only work if you have the “cfx-server” folder on your desktop
*Unless you change the directory/folder name.
RAW Script:
@echo off
taskkill /IM CitizenMP.Server.exe
taskkill /f /im FiveM.exe
cd “C:\Users"YOUR USER ACCOUNT HERE”\Desktop\cfx-server\cache\http-files"
del /F /Q .
cd “C:\Users"YOUR USER ACCOUNT HERE”\Desktop\cfx-server"
start CitizenMP.Server.exe %*
cd “C:\Users"YOUR USER ACCOUNT HERE”\Desktop\FiveM"
start FiveM.exe
Download (only valid for 30 days): https://ufile.io/ba254
Disclaimer: I am not a scripter - more like script kiddy - so if you have any recommendations please feel free to comment below!
–Off topic–
*if you know of anyone willing to help script a community “/Jail” or “/purge” script Please PM me!