Before you start
Back up your database and your server_config.lua and config.lua. Upgrades never touch stored photos, but a backup makes going back easy.
1. Replace the resource
- Stop your server.
- Delete the old
wd_richpresencefolder, but keep yourconfig.luaandserver_config.lua, and keep theimages/folder if you self-host photos. - Copy in the new version, then put your configuration files back.
Compare your files with the new ones. Version 1.1.0 adds settings that are missing from a 1.0.0 config, and missing settings fall back to their defaults.
2. Update the database
Run this once on your database when upgrading from 1.0.0 to 1.1.0. It renames one column:
ALTER TABLE `wd_richpresence_mugshots` CHANGE `message_id` `remote_id` VARCHAR(64) NULL DEFAULT NULL;If your table already has a remote_id column, this step is done and you can skip it.
3. If you used Discord webhooks
Webhook hosting was removed in 1.1.0, because those photos never displayed correctly on Discord. Set ServerConfig.ImageHost to 'fivemanage' or 'self' and set that host up, as described in Image hosting. Each character's photo is taken again on the new host the next time they load in. There is nothing to migrate.
4. Check your presence messages
Location is off by default in 1.1.0. If you want street and zone in your messages, set ShowLocation = true in config.lua. While it is off, the default Near {street}, {zone} message is skipped. See Presence text.
5. Start and check
- Start the server and read the console. There should be no
Mugshots disabledoruploads will failmessage. - Load a character and confirm the photo appears after a few seconds.
See Troubleshooting if something looks wrong, and Changelog for everything that changed.