Updating means replacing the script's folder and carrying your own changes into the new one. This page lists which files are yours and the order to follow.
Which files are yours
These files are open and meant to be edited. Everything else is replaced on every update.
| File | What it holds |
|---|---|
shared/config.lua | The script's options. |
data/*.lua | Editable data: lists, locations, catalogs. Not every script has this folder. |
locales/*.json | Interface and notification texts. |
The install/ folder, where present, contains SQL and item definitions. You run or copy them; you do not edit them in place.
Steps
Read the changelog
Open the Changelog and read every entry between your version and the new one. Look for new configuration options, new SQL and new dependencies.
Your current version is the version line in the script's fxmanifest.lua.
Back up
Copy the whole script folder somewhere outside resources. If the update includes SQL, back up the database too.
Do not keep the backup inside resources, even renamed. The server can load it as a second copy of the script.
Update Cuxial Bridge first
If a newer Cuxial Bridge is available, update it before the script. See Cuxial Bridge.
Replace the script
Delete the old folder and copy in the new one. Do not copy the new version over the old folder: files removed in the new version would stay behind.
Bring your changes back
Do not paste your old files over the new ones. A new version can add options, and an old shared/config.lua would be missing them.
Open your backup next to the new files and carry over your values:
shared/config.luaanddata/*.lua: start from the new file and re-apply your changes.locales/*.json: start from the new file and re-apply your texts. Keys added in the new version keep their default text.
A file comparison tool makes this quick.
Run new SQL
If the changelog mentions database changes, run the files it names from the install/ folder.
Restart the server
Restart the whole server, not only the resource. A full restart is the only way to be sure every player gets the new files.
Check the consoles
Watch the server console while it starts and open the F8 console in game. No errors from the script in either means the update is done.
If something breaks
Restore the backup folder, restore the database if you ran SQL, and restart. Then look for the error in the script's Troubleshooting page or in Help.
