Updating
How to update Eleven Phone on FiveM without losing anything: database backup, what to replace, why your config.lua is kept, new items and your translations.
Step by step
- Download the new version from Keymaster → Granted Assets (see Install with Keymaster).
- Back up your database and your
config.lua(andlocales/if you've translated them). - Stop the server.
- Replace the whole
eleven-phonefolder except yourconfig.lua. - If the version adds new items to
ox_inventory_items.lua, paste them again into yourox_inventory/data/items.lua: compare the new file with what you already have. - Start the server.
Before updating, read the CHANGELOG.md shipped with the resource or what's new.
Your config.lua is never touched
Factory values live in config/defaults.lua, which is replaced on every update and only fills in what you haven't set. That's why a new version can add keys or fix a factory value without overwriting anything of yours.
Warning
If you ever wrote something in config/defaults.lua instead of your config.lua, the update wipes it. That's the first place to look when "a setting got lost after updating".
The database
It updates itself too. On start, the resource creates missing tables, adds new columns and widens any whose type changed, checking first whether they're already there. A start with no changes prints nothing; when something changes, it tells you:
[eleven-phone] base de datos: 0 tabla(s) creada(s), 2 columna(s) añadida(s), 0 ajustada(s)
Languages
locales/es.json and locales/en.json are replaced. If you've translated them, keep a copy and put them back afterwards.
They don't need to be up to date: your file is merged key by key with the factory one, so a translation from an older version still works and new keys show in their original language instead of blank.