Guide · Updated 14 Sep 2026

How to update RedM scripts without losing your config

Most RedM servers run out-of-date scripts, and it is not laziness. Updating by hand means re-downloading from Tebex, diffing a config you edited months ago, running SQL you are not sure has already run, and restarting in the right order, for every script, every release. This guide gives you the manual routine that keeps your settings safe, and then the automatic route that makes the routine unnecessary.

The manual routine

  1. Back up first. The database and the resource folder. If that is not automated, Server Controller (from $2.99/mo) does scheduled mysqldump and file backups with one-click restore, and it has a free tier.
  2. Read the changelog. It tells you whether the config changed, whether there is SQL to run, and whether the folder was renamed. A rename means changing the ensure line too.
  3. Download the new version from your Tebex purchases with the same Cfx.re account you bought with. For escrowed scripts, this is the only place a valid build comes from.
  4. Copy everything except your config. Replace the code, the interface and the manifest. Keep your config.lua and any translation file to one side.
  5. Merge the config. Open the new config beside yours and copy across every setting that is new. Settings the update removed can stay; the script will ignore them. This is the step people skip, and it is why "the update broke my server" usually means "the update added a setting my config does not have".
  6. Run the SQL, once. If the update ships a migration, run it once against the right database. Running an older install file again can fail on tables that already exist.
  7. Restart in order. The framework first, then shared libraries, then the script. A script restarted before its dependency comes up with nothing to talk to.

Seven steps, per script, per release. With fifteen scripts and monthly releases that is the better part of a day each month, which is why it does not happen.

The automatic route

Poggy Core (Free) removes the routine for every Poggy script, free and paid. When your server starts and every hour after that, it checks an update feed for each Poggy script whose published version is newer than the one installed. For each one it:

  • installs the new files, merging config and translation files: settings the update adds are added, settings it removes are cleaned up, and every value you set is kept;
  • backs up every original it replaced in poggy_core/update_backups/;
  • creates or upgrades the database tables when the script starts, so there is no SQL to run;
  • restarts the updated scripts. At server start that is immediate; while players are online, the restart waits until the server is empty.

Escrowed scripts update the same way. The build comes from the feed, and your per-server licence file is never written, compared or deleted. Nobody re-downloads from the portal.

The console shows what happened: one line per updated script, and poggycore update all lists what is available at any time. Automatic restarts need two lines in server.cfg, and poggy_core prints them if they are missing:

add_ace resource.poggy_core command.refresh allow
add_ace resource.poggy_core command.ensure allow

If you would rather approve each update

Turn both switches off in poggy_core/config.lua:

AutoUpdate   = false,
ApplyOnStart = false,

poggy_core then only reports. poggycore update all shows what is waiting and poggycore update all apply installs it, with the same merge and backups. A server that wants to read release notes before anything changes loses nothing by doing this.

Scripts from other authors

Everything that is not a Poggy script still needs the manual routine. Two habits make it bearable: keep a copy of every config you have edited outside the resources folder, so a diff is one command rather than a memory test, and update one script per restart, so a problem points at one thing. And back up before every one of them; the routine above starts with that step for a reason.

Why versions matter

A script only updates when its published version number is higher than the one you run. Same or older is never touched, which is what makes the automatic route safe: an update cannot go backwards, and a script you edited locally at the same version is left alone. It also means a script author who forgets to bump the version has shipped nothing, so the version line in fxmanifest.lua is the one thing to check when an update you expected has not arrived.

Questions this guide answers

Will updating a RedM script overwrite my config.lua?

If you copy the new folder over the old one, yes. Copy everything except config.lua and translation files, then compare the new config with yours and add the settings the update introduced. Scripts that run on poggy_core do this merge for you.

Do I need to re-download an escrowed script to update it?

Normally yes: an escrowed update is a new build on the Cfx portal, downloaded from Tebex. Poggy scripts update in place through poggy_core, including the escrowed ones, because the new build is fetched from the update feed and your licence file is never touched.

Can I stop automatic updates and review them first?

Yes. Set AutoUpdate and ApplyOnStart to false in poggy_core/config.lua. The console then lists what is available and poggycore update all apply installs it when you choose.

What if an update breaks something?

Every file poggy_core replaces is backed up in poggy_core/update_backups first, so you can put the previous version back. For scripts you update by hand, the backup you took before starting is the way back.

Scripts mentioned in this guide

Whole store →
Poggy Core — Free RedM Framework Core and Auto-Updater
Free RedM Framework Core and Auto-Updater

Poggy Core

The free foundation every Poggy script runs on: one framework API for VORP Core, RSG Core and QBCore RedM, automatic updates, config files that merge themselves and database tables created on start. Use it under your own scripts too.

PriceFree
Server Controller — FiveM & RedM Server Backup Tool
FiveM & RedM Server Backup Tool

Server Controller

A standalone Windows app that schedules database and file backups, updates txAdmin hands-free and manages your server remotely, with Discord notifications and a live dashboard.

From$2.99
Poggy Markets — RedM Player-Owned Shop Script
RedM Player-Owned Shop Script

Poggy Markets

Players buy a storefront, stock it, price it, hire staff and run it from a live sales dashboard, with optional supply-and-demand pricing and a commodities exchange.

Price$99

Best RedM Scripts for a New Server

Economy, law, activities, roleplay tools and admin utilities. What to run, what it costs, and where the free options are.

Read the guide →

VORP vs RSG Core vs QBCore for RedM

Script availability, structure and inventory for each framework, and what "runs on VORP, RSG and QBCore" actually means.

Read the guide →

How to Install a RedM Script

Download, resources folder, SQL, start order, config and the escrow licence check. Then the five common errors.

Read the guide →

Free RedM Scripts Worth Installing

Seven free scripts, what each one does, what it needs, and what it does not do.

Read the guide →

RedM Server Economy: How to Balance Money, Jobs and Shops

Sources, sinks, player shops, auctions, jobs and a stipend. The model, the starting numbers and the scripts.

Read the guide →

How to Set Up Jobs on a RedM Server

Job names and grades, duty, several jobs per character, badges, and making every script agree.

Read the guide →

How to Back Up a RedM Server

The database, resources, configs, licence files and txData. How to automate it, and how to test the restore.

Read the guide →

Cfx Escrow Explained for RedM Server Owners

Which files are encrypted, what you can still change, the licence file, and the error everyone hits once.

Read the guide →

RedM Server Performance: How to Reduce Lag

Measure first, then the usual causes: hot client loops, dead entities, unindexed queries and NPC systems tuned too high.

Read the guide →

Using Poggy Core in Your Own RedM Scripts

The free framework layer under your own resources: install, first script, menus, storage, jobs, standalone mode, diagnostics.

Read the guide →
Return to Store