Updating
Update Patrolink on your FiveM server without losing your configuration, hooks or translations, and which data is kept in the database and in the items.
The general steps for all our scripts are in Update a script. This page covers what's specific to Patrolink.
Before updating
Back up what's yours:
config/(all five files, including your hooks inhooks.lua)locales/(if you changed texts or added languages)
Steps
- Download the new version from Keymaster.
- Stop the server (or the resource).
- Replace the
eleven_radiofolder with the new one. - Put your
config/andlocales/files back. If the new version adds keys, copy them from the new file into yours. - Compare
install/items.luawith your ox_inventory items in case anything changed. - Start the whole server and check the console. New tables, if any, are created automatically: there's no SQL to import.
Tip
In locales/, if you translated or changed texts, compare your file with the new one: keys missing from yours show up in English.
What's kept
Patrolink's saved data doesn't live in the folder, so it survives the update:
| Where | What |
|---|---|
Database: patrolink_numeros | Radio serial numbers. |
Database: patrolink_bloqueos | Locked radios. |
Database: patrolink_canales | Private band channels and their (hashed) passwords. |
| Item metadata | Tuning, zone, volume, backlight, alias and serial number of each radio. |
| Each player's client | Favorites, recents and HUD position. |
The transmission log lives in memory and is cleared when the resource restarts.
If something fails
See Troubleshooting and, for Keymaster errors, the Install with Keymaster guide.